summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2018-07-14 01:50:14 +0000
committerTeresa Johnson <tejohnson@google.com>2018-07-14 01:50:14 +0000
commit70993d37e8dd2031b623071372d7aebefb18c74c (patch)
tree924cee561cdf09fe50ecf57b6e22c04e533d99bc /clang/lib/CodeGen
parentb78c5d0602e47a37fd4b79b05cf687d83290d58f (diff)
downloadbcm5719-llvm-70993d37e8dd2031b623071372d7aebefb18c74c.tar.gz
bcm5719-llvm-70993d37e8dd2031b623071372d7aebefb18c74c.zip
Revert "[ThinLTO] Ensure we always select the same function copy to import"
This reverts commit r337051. llvm-svn: 337082
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/BackendUtil.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/BackendUtil.cpp b/clang/lib/CodeGen/BackendUtil.cpp
index 226a27b2161..2a02b838d22 100644
--- a/clang/lib/CodeGen/BackendUtil.cpp
+++ b/clang/lib/CodeGen/BackendUtil.cpp
@@ -1127,8 +1127,9 @@ static void runThinLTOBackend(ModuleSummaryIndex *CombinedIndex, Module *M,
// e.g. record required linkage changes.
if (Summary->modulePath() == M->getModuleIdentifier())
continue;
- // Add an entry to provoke importing by thinBackend.
- ImportList[Summary->modulePath()].insert(GUID);
+ // Doesn't matter what value we plug in to the map, just needs an entry
+ // to provoke importing by thinBackend.
+ ImportList[Summary->modulePath()][GUID] = 1;
}
std::vector<std::unique_ptr<llvm::MemoryBuffer>> OwnedImports;
OpenPOWER on IntegriCloud