diff options
author | David Blaikie <dblaikie@gmail.com> | 2014-11-02 01:21:40 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2014-11-02 01:21:40 +0000 |
commit | f4bdc31271977a9feaed4eb0d5aa413fbd2447ca (patch) | |
tree | 76f1d802c9c0634d0830cb78c78c61cade262106 /llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h | |
parent | e3cfb6c7608be0ea99866e7881d0d795748962b4 (diff) | |
download | bcm5719-llvm-f4bdc31271977a9feaed4eb0d5aa413fbd2447ca.tar.gz bcm5719-llvm-f4bdc31271977a9feaed4eb0d5aa413fbd2447ca.zip |
Sink DwarfUnit::LabelBegin down into DwarfCompileUnit since that's the only place it's needed.
llvm-svn: 221075
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h index def0cf78c6c..c9b365c6ce2 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h @@ -39,6 +39,9 @@ class DwarfCompileUnit : public DwarfUnit { /// A label at the start of the non-dwo section related to this unit. MCSymbol *SectionSym; + /// The start of the unit within its section. + MCSymbol *LabelBegin; + /// \brief Construct a DIE for the given DbgVariable without initializing the /// DbgVariable's DIE reference. std::unique_ptr<DIE> constructVariableDIEImpl(const DbgVariable &DV, @@ -171,6 +174,8 @@ public: void initSection(const MCSection *Section, MCSymbol *SectionSym) { DwarfUnit::initSection(Section); this->SectionSym = SectionSym; + LabelBegin = + Asm->GetTempSymbol(Section->getLabelBeginName(), getUniqueID()); } unsigned getLength() { @@ -179,6 +184,11 @@ public: } void emitHeader(const MCSymbol *ASectionSym) const override; + + MCSymbol *getLabelBegin() const { + assert(Section); + return LabelBegin; + } }; } // end llvm namespace |