summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2012-12-15 00:04:07 +0000
committerEric Christopher <echristo@gmail.com>2012-12-15 00:04:07 +0000
commita2de826d294b3c2d0785e18aabb43fd5b7877e06 (patch)
tree1f3bada474f4bd41cce9dfab0b803efe0267b137 /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
parent16485a5164c79fbfd5b58c6ea909d997301de61b (diff)
downloadbcm5719-llvm-a2de826d294b3c2d0785e18aabb43fd5b7877e06.tar.gz
bcm5719-llvm-a2de826d294b3c2d0785e18aabb43fd5b7877e06.zip
To simplify some code move the unit emission into the holders.
Make emitDIE public accordingly. No functional change. llvm-svn: 170258
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
index c03915aad12..738f117ad0b 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
@@ -219,6 +219,11 @@ public:
/// \brief Add a unit to the list of CUs.
void addUnit(CompileUnit *CU) { CUs.push_back(CU); }
+
+ /// \brief Emit all of the units to the section listed with the given
+ /// abbreviation section.
+ void emitUnits(DwarfDebug *, const MCSection *, const MCSection *,
+ const MCSymbol *);
};
/// \brief Collects and handles dwarf debug information.
@@ -394,9 +399,6 @@ private:
/// \brief Emit initial Dwarf sections with a label at the start of each one.
void emitSectionLabels();
- /// \brief Recursively Emits a debug information entry.
- void emitDIE(DIE *Die);
-
/// \brief Compute the size and offset of a DIE given an incoming Offset.
unsigned computeSizeAndOffset(DIE *Die, unsigned Offset);
@@ -417,9 +419,6 @@ private:
/// open.
void endSections();
- /// \brief Emit all of the compile units to the target section.
- void emitCompileUnits(const MCSection *);
-
/// \brief Emit the debug info section.
void emitDebugInfo();
@@ -569,6 +568,9 @@ public:
/// string text.
MCSymbol *getStringPoolEntry(StringRef Str);
+ /// \brief Recursively Emits a debug information entry.
+ void emitDIE(DIE *Die);
+
/// \brief Returns whether or not to limit some of our debug
/// output to the limitations of darwin gdb.
bool useDarwinGDBCompat() { return IsDarwinGDBCompat; }
OpenPOWER on IntegriCloud