summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2018-07-14 01:45:49 +0000
committerTeresa Johnson <tejohnson@google.com>2018-07-14 01:45:49 +0000
commit43658456ae9a9f0e7b9eee30099122f33cb60583 (patch)
tree12447a134a661a903e6625dcf40d35ef423c4118 /tools
parent73389a219db91397429ae80aeb2169c19f743501 (diff)
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@337081 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/llvm-link/llvm-link.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/llvm-link/llvm-link.cpp b/tools/llvm-link/llvm-link.cpp
index b7a888375b3..a50b26da731 100644
--- a/tools/llvm-link/llvm-link.cpp
+++ b/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);