diff options
author | Mehdi Amini <mehdi.amini@apple.com> | 2016-04-07 21:49:31 +0000 |
---|---|---|
committer | Mehdi Amini <mehdi.amini@apple.com> | 2016-04-07 21:49:31 +0000 |
commit | 4a9a1816cb09bf15ddbc07a9a66cfec075b975c7 (patch) | |
tree | d8664cc116cec5cff56371e647abca5948268f16 /llvm/lib/Bitcode/Writer | |
parent | 351241c83ea67cf4cc31b3e30b952ec45c9736e1 (diff) | |
download | bcm5719-llvm-4a9a1816cb09bf15ddbc07a9a66cfec075b975c7.tar.gz bcm5719-llvm-4a9a1816cb09bf15ddbc07a9a66cfec075b975c7.zip |
Rename parameter I to Index for WriteCombinedGlobalValueSummary() (NFC)
From: Mehdi Amini <mehdi.amini@apple.com>
llvm-svn: 265729
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()); |