[llvm] r265729 - Rename parameter I to Index for WriteCombinedGlobalValueSummary() (NFC)
Mehdi Amini via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 7 14:49:31 PDT 2016
Author: mehdi_amini
Date: Thu Apr 7 16:49:31 2016
New Revision: 265729
URL: http://llvm.org/viewvc/llvm-project?rev=265729&view=rev
Log:
Rename parameter I to Index for WriteCombinedGlobalValueSummary() (NFC)
From: Mehdi Amini <mehdi.amini at apple.com>
Modified:
llvm/trunk/lib/Bitcode/Writer/BitcodeWriter.cpp
Modified: llvm/trunk/lib/Bitcode/Writer/BitcodeWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Bitcode/Writer/BitcodeWriter.cpp?rev=265729&r1=265728&r2=265729&view=diff
==============================================================================
--- llvm/trunk/lib/Bitcode/Writer/BitcodeWriter.cpp (original)
+++ llvm/trunk/lib/Bitcode/Writer/BitcodeWriter.cpp Thu Apr 7 16:49:31 2016
@@ -3062,7 +3062,7 @@ static void WritePerModuleGlobalValueSum
/// 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 WriteCombinedGlobalValueSumm
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 WriteCombinedGlobalValueSumm
}
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());
More information about the llvm-commits
mailing list