From 4a9a1816cb09bf15ddbc07a9a66cfec075b975c7 Mon Sep 17 00:00:00 2001 From: Mehdi Amini Date: Thu, 7 Apr 2016 21:49:31 +0000 Subject: Rename parameter I to Index for WriteCombinedGlobalValueSummary() (NFC) From: Mehdi Amini llvm-svn: 265729 --- llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp') diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp index 23cd088..d9a4de5 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 &GUIDToValueIdMap, unsigned GlobalValueId) { Stream.EnterSubblock(bitc::GLOBALVAL_SUMMARY_BLOCK_ID, 3); @@ -3101,13 +3101,13 @@ static void WriteCombinedGlobalValueSummary( unsigned FSModRefsAbbrev = Stream.EmitAbbrev(Abbv); SmallVector 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(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(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()); -- cgit v1.1