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 2040 Build 2040: arc lint + arc unit
Event Timeline
Comment Actions
LGTM, other than a nit and one suggestion below.
llvm/lib/Bitcode/Reader/BitcodeReader.cpp | ||
---|---|---|
3079 | 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 | ||
68 | Nit: s/Perse/Parse/ |
llvm/lib/Bitcode/Reader/BitcodeReader.cpp | ||
---|---|---|
3079 | The MetadataLoader needs a Module, which we only have here. |
llvm/lib/Bitcode/Reader/BitcodeReader.cpp | ||
---|---|---|
3079 | 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).