[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:01 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,
----------------
aaupov wrote:

If the method computes DIE offset, it's better to keep the CU parameter a constant ref, and do the modifications outside of this method.

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


More information about the llvm-commits mailing list