forked from OSchip/llvm-project
[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:
parent
f92ab6af35
commit
3b01fbebeb
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue