[llvm] [BOLT][DWARF] Add support for .debug_names (PR #81062)
Amir Ayupov via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 15 12:05:19 PST 2024
================
@@ -378,11 +377,13 @@ getUnitForOffset(DIEBuilder &Builder, DWARFContext &DWCtx,
return nullptr;
}
-uint32_t DIEBuilder::computeDIEOffset(const DWARFUnit &CU, DIE &Die,
+uint32_t DIEBuilder::computeDIEOffset(DWARFUnit &CU, DIE &Die,
uint32_t &CurOffset) {
getState().DWARFDieAddressesParsed.erase(Die.getOffset());
uint32_t CurSize = 0;
Die.setOffset(CurOffset);
+ DebugNamesTable.addAccelTableEntry(
----------------
aaupov wrote:
Or pass a const CU ref here?
https://github.com/llvm/llvm-project/pull/81062
More information about the llvm-commits
mailing list