1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

Make the aix asm printer interface properly with the parent class

llvm-svn: 24274
This commit is contained in:
Chris Lattner 2005-11-10 18:20:29 +00:00
parent aa86c10fe6
commit 7ad799fbc1

View File

@ -210,7 +210,7 @@ namespace {
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 @@ bool AIXAsmPrinter::doInitialization(Module &M) {
O << '\n';
}
Mang = new Mangler(M, ".");
AsmPrinter::doInitialization(M);
return false; // success
}
@ -718,6 +718,6 @@ bool AIXAsmPrinter::doFinalization(Module &M) {
O << "_section_.text:\n"
<< "\t.csect .data[RW],3\n"
<< "\t.llong _section_.text\n";
delete Mang;
AsmPrinter::doFinalization(M);
return false; // success
}