I'm planning on changing the way we load metadata to enable laziness.
I'm getting lost in this gigantic files, and gigantic class that is the bitcode
reader. This is a first toward splitting it in a few coarse components that
are more easily understandable.
Details
Details
Diff Detail
Diff Detail
- Build Status
Buildable 2054 Build 2054: arc lint + arc unit
Event Timeline
Comment Actions
LGTM, other than a nit and one suggestion below.
llvm/lib/Bitcode/Reader/BitcodeReader.cpp | ||
---|---|---|
3076 | Why not create this within the BitcodeReader constructor instead? AFAICT we only ever invoke this right after we construct a BitcodeReader anyway (from within BitcodeModule::getModuleImpl). | |
llvm/lib/Bitcode/Reader/MetadataLoader.h | ||
67 | Nit: s/Perse/Parse/ |
llvm/lib/Bitcode/Reader/BitcodeReader.cpp | ||
---|---|---|
3076 | The MetadataLoader needs a Module, which we only have here. |
llvm/lib/Bitcode/Reader/BitcodeReader.cpp | ||
---|---|---|
3076 | Oh, of course, that makes sense. |
Why not create this within the BitcodeReader constructor instead? AFAICT we only ever invoke this right after we construct a BitcodeReader anyway (from within BitcodeModule::getModuleImpl).