summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/ModuleSummaryIndex.cpp
diff options
context:
space:
mode:
authorEugene Leviant <eleviant@accesssoftek.com>2018-10-24 07:48:32 +0000
committerEugene Leviant <eleviant@accesssoftek.com>2018-10-24 07:48:32 +0000
commit1f54500af04bcdc2a4cd41b154778abf691ed300 (patch)
treebc55f997c74e4930e6ad7b922a24c95d0fa4b830 /llvm/lib/IR/ModuleSummaryIndex.cpp
parent865cb5604c70ad1d674260ba96e6776c9a9df3a5 (diff)
downloadbcm5719-llvm-1f54500af04bcdc2a4cd41b154778abf691ed300.tar.gz
bcm5719-llvm-1f54500af04bcdc2a4cd41b154778abf691ed300.zip
[ThinLTO] Fix dot dumper for regular LTO modules
Regular LTO module identifier is (unsigned)-1. This patch emits correct module identifier while printing edges with source summary in regular LTO module. Differential revision: https://reviews.llvm.org/D53583 llvm-svn: 345118
Diffstat (limited to 'llvm/lib/IR/ModuleSummaryIndex.cpp')
-rw-r--r--llvm/lib/IR/ModuleSummaryIndex.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/ModuleSummaryIndex.cpp b/llvm/lib/IR/ModuleSummaryIndex.cpp
index 4c4466f9a90..02661915b2c 100644
--- a/llvm/lib/IR/ModuleSummaryIndex.cpp
+++ b/llvm/lib/IR/ModuleSummaryIndex.cpp
@@ -241,7 +241,7 @@ void ModuleSummaryIndex::exportToDot(raw_ostream& OS) const {
"_" + std::to_string(Id);
};
- auto DrawEdge = [&](const char *Pfx, int SrcMod, GlobalValue::GUID SrcId,
+ auto DrawEdge = [&](const char *Pfx, uint64_t SrcMod, GlobalValue::GUID SrcId,
int DstMod, GlobalValue::GUID DstId, int TypeOrHotness) {
// 0 corresponds to alias edge, 1 to ref edge, 2 to call with unknown
// hotness, ...
OpenPOWER on IntegriCloud