summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2013-12-09 17:51:30 +0000
committerDavid Blaikie <dblaikie@gmail.com>2013-12-09 17:51:30 +0000
commit1ab7c2dab435add700a227d619a252501ed3dec3 (patch)
tree16f4d3d858b8b1711bf15984e1751af10b69847d /llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h
parent1d981a9606afed98b8f8a918886d01537caa41b3 (diff)
downloadbcm5719-llvm-1ab7c2dab435add700a227d619a252501ed3dec3.tar.gz
bcm5719-llvm-1ab7c2dab435add700a227d619a252501ed3dec3.zip
DwarfDebug/Unit: Remove another case of label recreation by storing the gnu_ranges label in the unit.
llvm-svn: 196793
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h
index 0ffaacf02a1..98415548fcd 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h
@@ -140,6 +140,9 @@ protected:
/// The end of the unit within its section.
MCSymbol *LabelEnd;
+ /// The label for the start of the range sets for the elements of this unit.
+ MCSymbol *LabelRange;
+
Unit(unsigned UID, DIE *D, DICompileUnit CU, AsmPrinter *A, DwarfDebug *DW,
DwarfFile *DWU);
@@ -157,7 +160,9 @@ public:
Asm->GetTempSymbol(Section->getLabelBeginName(), getUniqueID());
this->LabelEnd =
Asm->GetTempSymbol(Section->getLabelEndName(), getUniqueID());
+ this->LabelRange = Asm->GetTempSymbol("gnu_ranges", getUniqueID());
}
+
const MCSection *getSection() const {
assert(Section);
return Section;
@@ -178,6 +183,11 @@ public:
return LabelEnd;
}
+ MCSymbol *getLabelRange() const {
+ assert(Section);
+ return LabelRange;
+ }
+
// Accessors.
unsigned getUniqueID() const { return UniqueID; }
virtual uint16_t getLanguage() const = 0;
OpenPOWER on IntegriCloud