Be lazy about loading metadata in IRObjectFile.

This speeds up llvm-ar building lib64/libclangSema.a with debug IR files
from 8.658015807 seconds to just 0.351036519 seconds :-)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232221 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola
2015-03-13 21:54:20 +00:00
parent fbbc2cc358
commit dc6141a4ff
6 changed files with 15 additions and 2 deletions

View File

@ -255,7 +255,7 @@ public:
static uint64_t decodeSignRotatedValue(uint64_t V);
/// Materialize any deferred Metadata block.
std::error_code materializeMetadata();
std::error_code materializeMetadata() override;
private:
std::vector<StructType *> IdentifiedStructTypes;