diff options
author | Evan Cheng <evan.cheng@apple.com> | 2006-03-07 02:02:57 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2006-03-07 02:02:57 +0000 |
commit | 3c992d291bc67d9ce9d742d586d24ade9a577c99 (patch) | |
tree | 1abde5de853ca01cae2dacdc34017a42a11a8bb6 /lib/Target/X86/X86IntelAsmPrinter.cpp | |
parent | 51c26e911af1b269234da336a03977153cf08d46 (diff) |
Enable Dwarf debugging info.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26581 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86IntelAsmPrinter.cpp')
-rwxr-xr-x | lib/Target/X86/X86IntelAsmPrinter.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/Target/X86/X86IntelAsmPrinter.cpp b/lib/Target/X86/X86IntelAsmPrinter.cpp index ed673df9fe..5bc8b24372 100755 --- a/lib/Target/X86/X86IntelAsmPrinter.cpp +++ b/lib/Target/X86/X86IntelAsmPrinter.cpp @@ -26,9 +26,16 @@ using namespace x86; /// method to print assembly for each instruction. /// bool X86IntelAsmPrinter::runOnMachineFunction(MachineFunction &MF) { + // Let PassManager know we need debug information and relay + // the MachineDebugInfo address on to DwarfWriter. + DW.SetDebugInfo(&getAnalysis<MachineDebugInfo>()); + SetupMachineFunction(MF); O << "\n\n"; + // Emit pre-function debug information. + DW.BeginFunction(MF); + // Print out constants referenced by the function EmitConstantPool(MF.getConstantPool()); @@ -56,6 +63,9 @@ bool X86IntelAsmPrinter::runOnMachineFunction(MachineFunction &MF) { } } + // Emit post-function debug information. + DW.EndFunction(MF); + // We didn't modify anything. return false; } |