diff options
author | Teresa Johnson <tejohnson@google.com> | 2016-01-22 00:15:53 +0000 |
---|---|---|
committer | Teresa Johnson <tejohnson@google.com> | 2016-01-22 00:15:53 +0000 |
commit | 6cba37ce75b26027534bc145f34893fefcbdeae5 (patch) | |
tree | c7d4a920a9f91590ffe43969dfcbaba86b36348e /llvm/lib/Linker/LinkModules.cpp | |
parent | 68b6d5ac42d5f2d5f051cb94ccf067fc8a666b8f (diff) | |
download | bcm5719-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.cpp | 2 |
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(); |