[BOLT] Fix debug logging in IndirectCallPromotion

Summary:
Access elements of a value pair in HotTargetMap debug logging/loop over
HotTargetMap key-value.

(cherry picked from FBD33344656)
This commit is contained in:
Amir Ayupov 2021-12-28 16:37:53 -08:00 committed by Maksim Panchenko
parent f92ab6af35
commit 3b01fbebeb
1 changed files with 2 additions and 2 deletions

View File

@ -459,8 +459,8 @@ IndirectCallPromotion::maybeGetHotJumpTableTargets(BinaryBasicBlock &BB,
for (std::pair<MCSymbol *const, std::pair<uint64_t, uint64_t>> &HT :
HotTargetMap)
dbgs() << "BOLT-INFO: " << HT.first->getName()
<< " = (count=" << HT.first << ", index=" << HT.second
<< ")\n";
<< " = (count=" << HT.second.first
<< ", index=" << HT.second.second << ")\n";
});
return JumpTableInfoType();
}