mirror of
https://github.com/intel/llvm.git
synced 2026-01-13 19:08:21 +08:00
[BOLT] Fix logs with no hex convension (#112650)
Add `utohexstr` to ensure that offsets/addresses are correctly formatted as hexadecimal values.
This commit is contained in:
@@ -314,7 +314,7 @@ public:
|
||||
|
||||
BC.errs()
|
||||
<< "BOLT-ERROR: unable to find TypeUnit for Type Unit at offset 0x"
|
||||
<< DU.getOffset() << "\n";
|
||||
<< Twine::utohexstr(DU.getOffset()) << "\n";
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
||||
@@ -1294,8 +1294,8 @@ bool BinaryContext::handleAArch64Veneer(uint64_t Address, bool MatchOnly) {
|
||||
Veneer->getOrCreateLocalLabel(Address);
|
||||
Veneer->setMaxSize(TotalSize);
|
||||
Veneer->updateState(BinaryFunction::State::Disassembled);
|
||||
LLVM_DEBUG(dbgs() << "BOLT-DEBUG: handling veneer function at 0x" << Address
|
||||
<< "\n");
|
||||
LLVM_DEBUG(dbgs() << "BOLT-DEBUG: handling veneer function at 0x"
|
||||
<< Twine::utohexstr(Address) << "\n");
|
||||
return true;
|
||||
};
|
||||
|
||||
|
||||
@@ -1362,7 +1362,7 @@ void DWARFRewriter::updateDWARFObjectAddressRanges(
|
||||
Die.getTag() == dwarf::DW_TAG_compile_unit)) {
|
||||
if (opts::Verbosity >= 1)
|
||||
errs() << "BOLT-WARNING: cannot update ranges for DIE in Unit offset 0x"
|
||||
<< Unit.getOffset() << '\n';
|
||||
<< Twine::utohexstr(Unit.getOffset()) << '\n';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user