diff options
author | Jim Laskey <jlaskey@mac.com> | 2006-06-23 12:51:53 +0000 |
---|---|---|
committer | Jim Laskey <jlaskey@mac.com> | 2006-06-23 12:51:53 +0000 |
commit | a7b2bd5997431ff12c4402bd2f211b5d2b7e5fd3 (patch) | |
tree | 63f04986267effff9ce30d2c83f08ea7d65ad87e /llvm/lib/Target | |
parent | 6a34939af63763406c8ef10e7e12ebe90f5a85d2 (diff) | |
download | bcm5719-llvm-a7b2bd5997431ff12c4402bd2f211b5d2b7e5fd3.tar.gz bcm5719-llvm-a7b2bd5997431ff12c4402bd2f211b5d2b7e5fd3.zip |
Add and sort "sections" in debug lines. This always stepping through
code in sections other than ".text", including weak sections like ctors and
dtors.
llvm-svn: 28909
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp | 5 | ||||
-rwxr-xr-x | llvm/lib/Target/X86/X86ATTAsmPrinter.cpp | 5 |
2 files changed, 2 insertions, 8 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp b/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp index 108f03d3ab0..c4f19fe48df 100644 --- a/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp +++ b/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp @@ -489,8 +489,6 @@ void PPCAsmPrinter::printMachineInstruction(const MachineInstr *MI) { /// bool DarwinAsmPrinter::runOnMachineFunction(MachineFunction &MF) { DW.SetDebugInfo(&getAnalysis<MachineDebugInfo>()); - // FIXME - should be able to debug coalesced functions. - bool IsNormalText = true; SetupMachineFunction(MF); O << "\n\n"; @@ -518,14 +516,13 @@ bool DarwinAsmPrinter::runOnMachineFunction(MachineFunction &MF) { ".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, IsNormalText); + DW.BeginFunction(&MF); // Print out code for the function. for (MachineFunction::const_iterator I = MF.begin(), E = MF.end(); diff --git a/llvm/lib/Target/X86/X86ATTAsmPrinter.cpp b/llvm/lib/Target/X86/X86ATTAsmPrinter.cpp index f103bccd318..3e690aa398d 100755 --- a/llvm/lib/Target/X86/X86ATTAsmPrinter.cpp +++ b/llvm/lib/Target/X86/X86ATTAsmPrinter.cpp @@ -29,8 +29,6 @@ bool X86ATTAsmPrinter::runOnMachineFunction(MachineFunction &MF) { // 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"; @@ -74,14 +72,13 @@ bool X86ATTAsmPrinter::runOnMachineFunction(MachineFunction &MF) { 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, IsNormalText); + DW.BeginFunction(&MF); } // Print out code for the function. |