[llvm] [BOLT][DWARF][NFC] Split DIEBuilder::finish (PR #101244)
Alexander Yermolovich via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 31 11:19:25 PDT 2024
================
@@ -203,13 +206,16 @@ class DIEBuilder {
/// Update references once the layout is finalized.
void updateReferences();
- /// Update the Offset and Size of DIE, populate DebugNames table.
+ /// Update the Offset and Size of DIE.
/// Along with current CU, and DIE being processed and the new DIE offset to
/// be updated, it takes in Parents vector that can be empty if this DIE has
/// no parents.
- uint32_t finalizeDIEs(DWARFUnit &CU, DIE &Die,
- std::optional<BOLTDWARF5AccelTableData *> Parent,
- uint32_t NumberParentsInChain, uint32_t &CurOffset);
+ uint32_t finalizeDIEs(DWARFUnit &CU, DIE &Die, uint32_t &CurOffset);
+
+ /// Populates DebugNames table.
+ void populateDebugNamesTable(DWARFUnit &CU, DIE &Die,
----------------
ayermolo wrote:
for this case DIE can be const since we are not updating here.
https://github.com/llvm/llvm-project/pull/101244
More information about the llvm-commits
mailing list