[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
Jim Laskey
jlaskey at apple.com
Wed Jun 14 04:35:19 PDT 2006
Changes in directory llvm/lib/Target/PowerPC:
PPCAsmPrinter.cpp updated: 1.176 -> 1.177
---
Log message:
Place dwarf headers at earliest possible point. Well behaved when skipping
functions.
---
Diffs of the changes: (+4 -2)
PPCAsmPrinter.cpp | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
Index: llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
diff -u llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp:1.176 llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp:1.177
--- llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp:1.176 Mon May 15 00:48:32 2006
+++ llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp Wed Jun 14 06:35:03 2006
@@ -488,8 +488,9 @@
/// method to print assembly for each instruction.
///
bool DarwinAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
- // FIXME - is this the earliest this can be set?
DW.SetDebugInfo(&getAnalysis<MachineDebugInfo>());
+ // FIXME - should be able to debug coalesced functions.
+ bool IsNormalText = true;
SetupMachineFunction(MF);
O << "\n\n";
@@ -517,13 +518,14 @@
".section __TEXT,__textcoal_nt,coalesced,pure_instructions", F);
O << "\t.globl\t" << CurrentFnName << "\n";
O << "\t.weak_definition\t" << CurrentFnName << "\n";
+ IsNormalText = false;
break;
}
EmitAlignment(4, F);
O << CurrentFnName << ":\n";
// Emit pre-function debug information.
- DW.BeginFunction(&MF);
+ DW.BeginFunction(&MF, IsNormalText);
// Print out code for the function.
for (MachineFunction::const_iterator I = MF.begin(), E = MF.end();
More information about the llvm-commits
mailing list