diff options
author | Teresa Johnson <tejohnson@google.com> | 2018-07-14 01:45:49 +0000 |
---|---|---|
committer | Teresa Johnson <tejohnson@google.com> | 2018-07-14 01:45:49 +0000 |
commit | b78c5d0602e47a37fd4b79b05cf687d83290d58f (patch) | |
tree | 68565e43311890dc06da31418b9fe33187736548 /llvm/tools/llvm-link/llvm-link.cpp | |
parent | 8e739f98fe0529ec6af842a635792e781c4ac967 (diff) | |
download | bcm5719-llvm-b78c5d0602e47a37fd4b79b05cf687d83290d58f.tar.gz bcm5719-llvm-b78c5d0602e47a37fd4b79b05cf687d83290d58f.zip |
Revert "[ThinLTO] Ensure we always select the same function copy to import"
This reverts commits r337050 and r337059. Caused failure in
reverse-iteration bot that needs more investigation.
llvm-svn: 337081
Diffstat (limited to 'llvm/tools/llvm-link/llvm-link.cpp')
-rw-r--r-- | llvm/tools/llvm-link/llvm-link.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-link/llvm-link.cpp b/llvm/tools/llvm-link/llvm-link.cpp index b7a888375b3..a50b26da731 100644 --- a/llvm/tools/llvm-link/llvm-link.cpp +++ b/llvm/tools/llvm-link/llvm-link.cpp @@ -262,7 +262,7 @@ static bool importFunctions(const char *argv0, Module &DestModule) { errs() << "Importing " << FunctionName << " from " << FileName << "\n"; auto &Entry = ImportList[FileName]; - Entry.insert(F->getGUID()); + Entry.insert(std::make_pair(F->getGUID(), /* (Unused) threshold */ 1.0)); } auto CachedModuleLoader = [&](StringRef Identifier) { return ModuleLoaderCache.takeModule(Identifier); |