diff options
author | Eric Liu <ioeric@google.com> | 2017-05-04 11:49:39 +0000 |
---|---|---|
committer | Eric Liu <ioeric@google.com> | 2017-05-04 11:49:39 +0000 |
commit | f6039f255e0f85224c37a228a3cb6659b351796e (patch) | |
tree | 5042e47c514cad95e41a4fba95613227dcd0a2d2 /llvm/lib/LTO/LTO.cpp | |
parent | dd12594345b0e2156a524f88a43dfaeb5ab65f1d (diff) | |
download | llvm-f6039f255e0f85224c37a228a3cb6659b351796e.zip llvm-f6039f255e0f85224c37a228a3cb6659b351796e.tar.gz llvm-f6039f255e0f85224c37a228a3cb6659b351796e.tar.bz2 |
Revert "IR: Use pointers instead of GUIDs to represent edges in the module summary. NFCI."
This reverts commit r302108. This causes crash in clang bootstrap with LTO.
Contacted the auther in the original commit.
llvm-svn: 302140
Diffstat (limited to 'llvm/lib/LTO/LTO.cpp')
-rw-r--r-- | llvm/lib/LTO/LTO.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/llvm/lib/LTO/LTO.cpp b/llvm/lib/LTO/LTO.cpp index 2d2dcde..0afa1ba 100644 --- a/llvm/lib/LTO/LTO.cpp +++ b/llvm/lib/LTO/LTO.cpp @@ -274,14 +274,13 @@ void llvm::thinLTOResolveWeakForLinkerInIndex( // when needed. DenseSet<GlobalValueSummary *> GlobalInvolvedWithAlias; for (auto &I : Index) - for (auto &S : I.second.SummaryList) + for (auto &S : I.second) if (auto AS = dyn_cast<AliasSummary>(S.get())) GlobalInvolvedWithAlias.insert(&AS->getAliasee()); for (auto &I : Index) - thinLTOResolveWeakForLinkerGUID(I.second.SummaryList, I.first, - GlobalInvolvedWithAlias, isPrevailing, - recordNewLinkage); + thinLTOResolveWeakForLinkerGUID(I.second, I.first, GlobalInvolvedWithAlias, + isPrevailing, recordNewLinkage); } static void thinLTOInternalizeAndPromoteGUID( @@ -302,7 +301,7 @@ void llvm::thinLTOInternalizeAndPromoteInIndex( ModuleSummaryIndex &Index, function_ref<bool(StringRef, GlobalValue::GUID)> isExported) { for (auto &I : Index) - thinLTOInternalizeAndPromoteGUID(I.second.SummaryList, I.first, isExported); + thinLTOInternalizeAndPromoteGUID(I.second, I.first, isExported); } // Requires a destructor for std::vector<InputModule>. |