diff options
Diffstat (limited to 'llvm/lib/Bitcode/Writer')
-rw-r--r-- | llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp index 23cd0888726..d9a4de5ddbd 100644 --- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp @@ -3062,7 +3062,7 @@ static void WritePerModuleGlobalValueSummary( /// Emit the combined summary section into the combined index file. static void WriteCombinedGlobalValueSummary( - const ModuleSummaryIndex &I, BitstreamWriter &Stream, + const ModuleSummaryIndex &Index, BitstreamWriter &Stream, std::map<GlobalValue::GUID, unsigned> &GUIDToValueIdMap, unsigned GlobalValueId) { Stream.EnterSubblock(bitc::GLOBALVAL_SUMMARY_BLOCK_ID, 3); @@ -3101,13 +3101,13 @@ static void WriteCombinedGlobalValueSummary( unsigned FSModRefsAbbrev = Stream.EmitAbbrev(Abbv); SmallVector<uint64_t, 64> NameVals; - for (const auto &FII : I) { + for (const auto &FII : Index) { for (auto &FI : FII.second) { GlobalValueSummary *S = FI->summary(); assert(S); if (auto *VS = dyn_cast<GlobalVarSummary>(S)) { - NameVals.push_back(I.getModuleId(VS->modulePath())); + NameVals.push_back(Index.getModuleId(VS->modulePath())); NameVals.push_back(getEncodedLinkage(VS->linkage())); for (auto &RI : VS->refs()) { const auto &VMI = GUIDToValueIdMap.find(RI); @@ -3136,7 +3136,7 @@ static void WriteCombinedGlobalValueSummary( } auto *FS = cast<FunctionSummary>(S); - NameVals.push_back(I.getModuleId(FS->modulePath())); + NameVals.push_back(Index.getModuleId(FS->modulePath())); NameVals.push_back(getEncodedLinkage(FS->linkage())); NameVals.push_back(FS->instCount()); NameVals.push_back(FS->refs().size()); |