[lto] Don't lazy load metadata for now.
authorSean Silva <chisophugis@gmail.com>
Wed, 9 Mar 2016 18:38:40 +0000 (18:38 +0000)
committerSean Silva <chisophugis@gmail.com>
Wed, 9 Mar 2016 18:38:40 +0000 (18:38 +0000)
commit50d27ff3c1f7944def79067b937490b56aedf25b
tree2bafe3a934316f9f6eb5c0bc71586c2ddeeef54f
parent52adb575e61763e27198df0661526c7d7f2c4eaa
[lto] Don't lazy load metadata for now.

Summary:
At the very least we hit

    Assertion failed: (((Flags & RF_HaveUnmaterializedMetadata) || Node->isResolved()) && "Unexpected unresolved node"), function MapMetadataImpl, file /Users/Sean/pg/llvm/lib/Transforms/Utils/ValueMapper.cpp, line 375.

on the included test case.

We currently do things like parse the module twice to keep the
implementation minimal. I think it makes sense to add start with eager
loading for similar reasons.

Reviewers: rafael

Subscribers: ruiu, Bigcheese, llvm-commits, joker.eph

Differential Revision: http://reviews.llvm.org/D17982

llvm-svn: 263045
lld/ELF/SymbolTable.cpp
lld/test/ELF/lto/metadata.ll [new file with mode: 0644]