Rename parameter I to Index for WriteCombinedGlobalValueSummary() (NFC)
From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 265729
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user