[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp

Jim Laskey jlaskey at apple.com
Fri Apr 7 13:44:55 PDT 2006



Changes in directory llvm/lib/Target/PowerPC:

PPCAsmPrinter.cpp updated: 1.162 -> 1.163
---
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:  (+3 -3)

 PPCAsmPrinter.cpp |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)


Index: llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
diff -u llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp:1.162 llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp:1.163
--- llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp:1.162	Sat Mar 25 00:12:06 2006
+++ llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp	Fri Apr  7 15:44:42 2006
@@ -511,9 +511,6 @@
   SetupMachineFunction(MF);
   O << "\n\n";
   
-  // Emit pre-function debug information.
-  DW.BeginFunction(&MF);
-
   // Print out constants referenced by the function
   EmitConstantPool(MF.getConstantPool());
 
@@ -539,6 +536,9 @@
   EmitAlignment(4, F);
   O << CurrentFnName << ":\n";
 
+  // 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) {






More information about the llvm-commits mailing list