summaryrefslogtreecommitdiffstats
path: root/llvm/tools
diff options
context:
space:
mode:
authorEric Liu <ioeric@google.com>2017-05-04 11:49:39 +0000
committerEric Liu <ioeric@google.com>2017-05-04 11:49:39 +0000
commitf6039f255e0f85224c37a228a3cb6659b351796e (patch)
tree5042e47c514cad95e41a4fba95613227dcd0a2d2 /llvm/tools
parentdd12594345b0e2156a524f88a43dfaeb5ab65f1d (diff)
downloadbcm5719-llvm-f6039f255e0f85224c37a228a3cb6659b351796e.tar.gz
bcm5719-llvm-f6039f255e0f85224c37a228a3cb6659b351796e.zip
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/tools')
-rw-r--r--llvm/tools/llvm-link/llvm-link.cpp2
-rw-r--r--llvm/tools/llvm-lto/llvm-lto.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/llvm-link/llvm-link.cpp b/llvm/tools/llvm-link/llvm-link.cpp
index 568e5f8d2d5..27199d53538 100644
--- a/llvm/tools/llvm-link/llvm-link.cpp
+++ b/llvm/tools/llvm-link/llvm-link.cpp
@@ -300,7 +300,7 @@ static bool linkFiles(const char *argv0, LLVMContext &Context, Linker &L,
// does not do the ThinLink that would normally determine what values to
// promote.
for (auto &I : *Index) {
- for (auto &S : I.second.SummaryList) {
+ for (auto &S : I.second) {
if (GlobalValue::isLocalLinkage(S->linkage()))
S->setLinkage(GlobalValue::ExternalLinkage);
}
diff --git a/llvm/tools/llvm-lto/llvm-lto.cpp b/llvm/tools/llvm-lto/llvm-lto.cpp
index 2458d3d123c..27e5c5e122c 100644
--- a/llvm/tools/llvm-lto/llvm-lto.cpp
+++ b/llvm/tools/llvm-lto/llvm-lto.cpp
@@ -284,7 +284,7 @@ void printIndexStats() {
unsigned Calls = 0, Refs = 0, Functions = 0, Alias = 0, Globals = 0;
for (auto &Summaries : *Index) {
- for (auto &Summary : Summaries.second.SummaryList) {
+ for (auto &Summary : Summaries.second) {
Refs += Summary->refs().size();
if (auto *FuncSummary = dyn_cast<FunctionSummary>(Summary.get())) {
Functions++;
OpenPOWER on IntegriCloud