[llvm-commits] CVS: llvm/lib/Target/X86/X86ATTAsmPrinter.cpp
Jim Laskey
jlaskey at apple.com
Wed Jun 14 04:35:17 PDT 2006
Changes in directory llvm/lib/Target/X86:
X86ATTAsmPrinter.cpp updated: 1.50 -> 1.51
---
Log message:
Place dwarf headers at earliest possible point. Well behaved when skipping
functions.
---
Diffs of the changes: (+4 -1)
X86ATTAsmPrinter.cpp | 5 ++++-
1 files changed, 4 insertions(+), 1 deletion(-)
Index: llvm/lib/Target/X86/X86ATTAsmPrinter.cpp
diff -u llvm/lib/Target/X86/X86ATTAsmPrinter.cpp:1.50 llvm/lib/Target/X86/X86ATTAsmPrinter.cpp:1.51
--- llvm/lib/Target/X86/X86ATTAsmPrinter.cpp:1.50 Wed May 31 17:34:26 2006
+++ llvm/lib/Target/X86/X86ATTAsmPrinter.cpp Wed Jun 14 06:35:03 2006
@@ -29,6 +29,8 @@
// Let PassManager know we need debug information and relay
// the MachineDebugInfo address on to DwarfWriter.
DW.SetDebugInfo(&getAnalysis<MachineDebugInfo>());
+ // FIXME - should be able to debug coalesced functions.
+ bool IsNormalText = true;
SetupMachineFunction(MF);
O << "\n\n";
@@ -72,13 +74,14 @@
SwitchToTextSection("", F);
O << "\t.weak " << CurrentFnName << "\n";
}
+ IsNormalText = false;
break;
}
O << CurrentFnName << ":\n";
if (Subtarget->TargetType == X86Subtarget::isDarwin) {
// Emit pre-function debug information.
- DW.BeginFunction(&MF);
+ DW.BeginFunction(&MF, IsNormalText);
}
// Print out code for the function.
More information about the llvm-commits
mailing list