[llvm] [NFC][DWARF] Prefer addSectionLabel (PR #214239)
Aiden Grossman via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 6 22:49:16 PDT 2026
================
@@ -2129,7 +2129,7 @@ void DwarfUnit::addSectionDelta(DIE &Die, dwarf::Attribute Attribute,
void DwarfUnit::addSectionLabel(DIE &Die, dwarf::Attribute Attribute,
const MCSymbol *Label, const MCSymbol *Sec) {
- if (Asm->doesDwarfUseRelocationsAcrossSections())
+ if (Asm->doesDwarfUseRelocationsAcrossSections() && !isDwoUnit())
----------------
boomanaiden154 wrote:
Added a comment. I couldn't find any much better way of spelling it without maybe introducing a helper function.
https://github.com/llvm/llvm-project/pull/214239
More information about the llvm-commits
mailing list