[llvm] [BOLT][DWARF] Add support for .debug_names (PR #81062)

Alexander Yermolovich via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 21 17:40:45 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,
----------------
ayermolo wrote:

As I mentioned the issue is getStringOffsetsTableContribution which invoked extractDIEsIfNeeded. Which parses dwarf and sets StringOffsetsTableContribution, which that API returns. So it can't be const. 

https://github.com/llvm/llvm-project/pull/81062


More information about the llvm-commits mailing list