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

Chris Lattner lattner at cs.uiuc.edu
Thu Nov 10 10:20:41 PST 2005



Changes in directory llvm/lib/Target/PowerPC:

PPCAsmPrinter.cpp updated: 1.103 -> 1.104
---
Log message:

Make the aix asm printer interface properly with the parent class


---
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.103 llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp:1.104
--- llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp:1.103	Mon Oct 31 18:12:36 2005
+++ llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp	Thu Nov 10 12:20:29 2005
@@ -210,7 +210,7 @@
     AIXAsmPrinter(std::ostream &O, TargetMachine &TM)
       : PPCAsmPrinter(O, TM) {
       CommentString = "#";
-      GlobalPrefix = "_";
+      GlobalPrefix = ".";
       ZeroDirective = "\t.space\t";  // ".space N" emits N zeros.
       Data64bitsDirective = 0;       // we can't emit a 64-bit unit
       AlignmentIsInBytes = false;    // Alignment is by power of 2.
@@ -691,7 +691,7 @@
     O << '\n';
   }
 
-  Mang = new Mangler(M, ".");
+  AsmPrinter::doInitialization(M);
   return false; // success
 }
 
@@ -718,6 +718,6 @@
   O << "_section_.text:\n"
     << "\t.csect .data[RW],3\n"
     << "\t.llong _section_.text\n";
-  delete Mang;
+  AsmPrinter::doFinalization(M);
   return false; // success
 }






More information about the llvm-commits mailing list