[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
Jim Laskey
jlaskey at apple.com
Tue Jan 17 09:32:07 PST 2006
Changes in directory llvm/lib/Target/PowerPC:
PPCAsmPrinter.cpp updated: 1.136 -> 1.137
---
Log message:
Adding basic support for Dwarf line number debug information.
I promise to keep future commits smaller.
---
Diffs of the changes: (+8 -6)
PPCAsmPrinter.cpp | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
Index: llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
diff -u llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp:1.136 llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp:1.137
--- llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp:1.136 Wed Jan 4 19:25:28 2006
+++ llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp Tue Jan 17 11:31:53 2006
@@ -215,9 +215,11 @@
: DwarfWriter(o, ap)
{
needsSet = true;
- DwarfAbbrevSection = ".section __DWARFA,__debug_abbrev,regular,debug";
- DwarfInfoSection = ".section __DWARFA,__debug_info,regular,debug";
- DwarfLineSection = ".section __DWARFA,__debug_line,regular,debug";
+ DwarfAbbrevSection = ".section __DWARF,__debug_abbrev,regular,debug";
+ DwarfInfoSection = ".section __DWARF,__debug_info,regular,debug";
+ DwarfLineSection = ".section __DWARF,__debug_line,regular,debug";
+ TextSection = ".text";
+ DataSection = ".data";
}
};
@@ -607,6 +609,9 @@
}
}
+ // Emit initial debug information.
+ DW.EndModule();
+
// Funny Darwin hack: This flag tells the linker that no global symbols
// contain code that falls through to other global symbols (e.g. the obvious
// implementation of multiple entry points). If this doesn't occur, the
@@ -614,9 +619,6 @@
// code that does this, it is always safe to set.
O << "\t.subsections_via_symbols\n";
- // Emit initial debug information.
- DW.EndModule();
-
AsmPrinter::doFinalization(M);
return false; // success
}
More information about the llvm-commits
mailing list