summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Linker/LinkModules.cpp
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2016-01-22 00:15:53 +0000
committerTeresa Johnson <tejohnson@google.com>2016-01-22 00:15:53 +0000
commit6cba37ce75b26027534bc145f34893fefcbdeae5 (patch)
treec7d4a920a9f91590ffe43969dfcbaba86b36348e /llvm/lib/Linker/LinkModules.cpp
parent68b6d5ac42d5f2d5f051cb94ccf067fc8a666b8f (diff)
downloadbcm5719-llvm-6cba37ce75b26027534bc145f34893fefcbdeae5.tar.gz
bcm5719-llvm-6cba37ce75b26027534bc145f34893fefcbdeae5.zip
[ThinLTO] Do metadata linking during batch function importing
Summary: Since we are currently not doing incremental importing there is no need to link metadata as a postpass. The module linker will only link in the imported subroutines due to the functionality added by r256003. (Note that the metadata postpass linking functionalitiy is still used by llvm-link, and may be needed here in the future if a more incremental strategy is adopted.) Reviewers: joker.eph Subscribers: joker.eph, llvm-commits Differential Revision: http://reviews.llvm.org/D16424 llvm-svn: 258458
Diffstat (limited to 'llvm/lib/Linker/LinkModules.cpp')
-rw-r--r--llvm/lib/Linker/LinkModules.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/Linker/LinkModules.cpp b/llvm/lib/Linker/LinkModules.cpp
index a418f640c02..a9b8ef2470b 100644
--- a/llvm/lib/Linker/LinkModules.cpp
+++ b/llvm/lib/Linker/LinkModules.cpp
@@ -137,8 +137,6 @@ public:
// may be exported to another backend compilation.
if (ImportIndex && !FunctionsToImport)
HasExportedFunctions = ImportIndex->hasExportedFunctions(SrcM);
- assert((ValIDToTempMDMap || !FunctionsToImport) &&
- "Function importing must provide a ValIDToTempMDMap");
}
bool run();
OpenPOWER on IntegriCloud