summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/IRObjectFile.cpp
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2016-08-11 12:56:40 +0000
committerTeresa Johnson <tejohnson@google.com>2016-08-11 12:56:40 +0000
commitf99573b3ee6009494d431348ec92dcab7b6a218b (patch)
tree57c77754b9215a0e3429c659d9c5eb56b15f351d /llvm/lib/Object/IRObjectFile.cpp
parent5c91764af5d5dc27c4e52073c0361d7a452c5a8c (diff)
downloadbcm5719-llvm-f99573b3ee6009494d431348ec92dcab7b6a218b.tar.gz
bcm5719-llvm-f99573b3ee6009494d431348ec92dcab7b6a218b.zip
Resolution-based LTO API.
Summary: This introduces a resolution-based LTO API. The main advantage of this API over existing APIs is that it allows the linker to supply a resolution for each symbol in each object, rather than the combined object as a whole. This will become increasingly important for use cases such as ThinLTO which require us to process symbol resolutions in a more complicated way than just adjusting linkage. Patch by Peter Collingbourne. Reviewers: rafael, tejohnson, mehdi_amini Subscribers: lhames, tejohnson, mehdi_amini, llvm-commits Differential Revision: https://reviews.llvm.org/D20268 Address review comments llvm-svn: 278330
Diffstat (limited to 'llvm/lib/Object/IRObjectFile.cpp')
-rw-r--r--llvm/lib/Object/IRObjectFile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Object/IRObjectFile.cpp b/llvm/lib/Object/IRObjectFile.cpp
index 42c8ecd62da..f86576f3d69 100644
--- a/llvm/lib/Object/IRObjectFile.cpp
+++ b/llvm/lib/Object/IRObjectFile.cpp
@@ -324,5 +324,5 @@ llvm::object::IRObjectFile::create(MemoryBufferRef Object,
return EC;
std::unique_ptr<Module> &M = MOrErr.get();
- return llvm::make_unique<IRObjectFile>(Object, std::move(M));
+ return llvm::make_unique<IRObjectFile>(BCOrErr.get(), std::move(M));
}
OpenPOWER on IntegriCloud