Changes in directory llvm/lib/Target/X86:
X86ATTAsmPrinter.cpp updated: 1.32 -> 1.33 X86IntelAsmPrinter.cpp updated: 1.25 -> 1.26 --- Log message: Make sure that debug labels are defined within the same section and after the entry point of a function. --- Diffs of the changes: (+10 -10) X86ATTAsmPrinter.cpp | 10 +++++----- X86IntelAsmPrinter.cpp | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) Index: llvm/lib/Target/X86/X86ATTAsmPrinter.cpp diff -u llvm/lib/Target/X86/X86ATTAsmPrinter.cpp:1.32 llvm/lib/Target/X86/X86ATTAsmPrinter.cpp:1.33 --- llvm/lib/Target/X86/X86ATTAsmPrinter.cpp:1.32 Thu Mar 23 12:09:44 2006 +++ llvm/lib/Target/X86/X86ATTAsmPrinter.cpp Fri Apr 7 15:44:42 2006 @@ -35,11 +35,6 @@ SetupMachineFunction(MF); O << "\n\n"; - if (forDarwin) { - // Emit pre-function debug information. - DW.BeginFunction(&MF); - } - // Print out constants referenced by the function EmitConstantPool(MF.getConstantPool()); @@ -73,6 +68,11 @@ } O << CurrentFnName << ":\n"; + if (forDarwin) { + // Emit pre-function debug information. + DW.BeginFunction(&MF); + } + // Print out code for the function. for (MachineFunction::const_iterator I = MF.begin(), E = MF.end(); I != E; ++I) { Index: llvm/lib/Target/X86/X86IntelAsmPrinter.cpp diff -u llvm/lib/Target/X86/X86IntelAsmPrinter.cpp:1.25 llvm/lib/Target/X86/X86IntelAsmPrinter.cpp:1.26 --- llvm/lib/Target/X86/X86IntelAsmPrinter.cpp:1.25 Thu Mar 23 12:09:44 2006 +++ llvm/lib/Target/X86/X86IntelAsmPrinter.cpp Fri Apr 7 15:44:42 2006 @@ -34,11 +34,6 @@ SetupMachineFunction(MF); O << "\n\n"; - if (forDarwin) { - // Emit pre-function debug information. - DW.BeginFunction(&MF); - } - // Print out constants referenced by the function EmitConstantPool(MF.getConstantPool()); @@ -49,6 +44,11 @@ if (HasDotTypeDotSizeDirective) O << "\t.type\t" << CurrentFnName << ", @function\n"; O << CurrentFnName << ":\n"; + + if (forDarwin) { + // Emit pre-function debug information. + DW.BeginFunction(&MF); + } // Print out code for the function. for (MachineFunction::const_iterator I = MF.begin(), E = MF.end(); _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits