aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2012-11-27 00:41:54 +0000
committerEric Christopher <echristo@gmail.com>2012-11-27 00:41:54 +0000
commit74802f7e43dada1411dd456e998e7650c360e1cf (patch)
tree97b1bb7c2221bae81f8327ef2c7b97d870e248d3 /lib/CodeGen/AsmPrinter/DwarfDebug.cpp
parent125fc7fefd4a198dd210cb43f5d8f1ba2c1e2dcf (diff)
Add in sections for the fission case (no change so incorrect) and
add a TODO for starting. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168643 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfDebug.cpp33
1 files changed, 32 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index d7733846d1..ca393c9b96 100644
--- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -903,8 +903,39 @@ void DwarfDebug::endModule() {
// Emit initial sections.
emitSectionLabels();
- // Emit all the DIEs into a debug info section
if (!useDwarfFission()) {
+ // Emit all the DIEs into a debug info section.
+ emitDebugInfo();
+
+ // Corresponding abbreviations into a abbrev section.
+ emitAbbreviations();
+
+ // Emit info into a debug loc section.
+ emitDebugLoc();
+
+ // Emit info into a debug aranges section.
+ emitDebugARanges();
+
+ // Emit info into a debug ranges section.
+ emitDebugRanges();
+
+ // Emit info into a debug macinfo section.
+ emitDebugMacInfo();
+
+ // Emit inline info.
+ // TODO: When we don't need the option anymore we
+ // can remove all of the code that this section
+ // depends upon.
+ if (useDarwinGDBCompat())
+ emitDebugInlineInfo();
+
+ // Emit info into a debug str section.
+ emitDebugStr();
+ } else {
+ // TODO: Fill this in for Fission sections and separate
+ // out information into new sections.
+
+ // Emit all the DIEs into a debug info section.
emitDebugInfo();
// Corresponding abbreviations into a abbrev section.