OSDN Git Service

Materialize metadata in IRLinker before value mapping
authorTeresa Johnson <tejohnson@google.com>
Thu, 10 Mar 2016 18:47:03 +0000 (18:47 +0000)
committerTeresa Johnson <tejohnson@google.com>
Thu, 10 Mar 2016 18:47:03 +0000 (18:47 +0000)
commitb738b28f978a60ef59f91017ffb9e1085ce14707
tree2e1537d4f04e232bd7045cd01aa9246c2586a3a6
parent07f1262d8ab8cc31cc44a6580cf706ffed7234a3
Materialize metadata in IRLinker before value mapping

Summary:
Unless we plan to do later postpass metadata linking (ThinLTO special mode),
always invoke metadata materialization at the start of IRLinker::run().
This avoids the need for clients who use lazy metadata loading to
explicitly invoke materializeMetadata before the IRMover, which in
turn invokes IRLinker::run and needs materialized metadata for mapping.

Came up in the context of an LLD issue (D17982).

Reviewers: rafael

Subscribers: silvas, llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@263143 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Linker/IRMover.cpp