Add and sort "sections" in debug lines. This always stepping through
code in sections other than ".text", including weak sections like ctors and
dtors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28909 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/X86/X86ATTAsmPrinter.cpp b/lib/Target/X86/X86ATTAsmPrinter.cpp
index f103bcc..3e690aa 100755
--- a/lib/Target/X86/X86ATTAsmPrinter.cpp
+++ b/lib/Target/X86/X86ATTAsmPrinter.cpp
@@ -29,8 +29,6 @@
// 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 @@
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.