diff options
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h | 7 | 
1 files changed, 5 insertions, 2 deletions
| diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h index 5f80e0cfc23..27ed6fc1431 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h @@ -158,8 +158,11 @@ public:    void initSection(const MCSection *Section, MCSymbol *SectionSym) {      DwarfUnit::initSection(Section);      this->SectionSym = SectionSym; -    LabelBegin = -        Asm->GetTempSymbol(Section->getLabelBeginName(), getUniqueID()); + +    // Don't bother labeling the .dwo unit, as its offset isn't used. +    if (!Skeleton) +      LabelBegin = +          Asm->GetTempSymbol(Section->getLabelBeginName(), getUniqueID());    }    unsigned getLength() { | 

