[llvm] [BOLT][DWARF] Skip processing DWARF CUs with a DWO ID but no DWO name. (PR #154749)
Alexander Yermolovich via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 11 07:53:07 PDT 2025
================
@@ -583,6 +583,15 @@ DWARFDie DIEBuilder::resolveDIEReference(
uint64_t TmpRefOffset = RefOffset;
if ((RefCU =
getUnitForOffset(*this, *DwarfContext, TmpRefOffset, AttrSpec))) {
+ std::optional<uint64_t> DWOId = RefCU->getDWOId();
----------------
ayermolo wrote:
Ah right you have -fsplit-dwarf-inlining enabled.
Have you tried just adding logic in DIEBuilder::registerUnit?
That way I think you also won't need a check in the DWARFRewriter.
https://github.com/llvm/llvm-project/pull/154749
More information about the llvm-commits
mailing list