summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-11-21 08:02:41 +0000
committerChris Lattner <sabre@nondot.org>2005-11-21 08:02:41 +0000
commitdd3bf8e4a2952082c5cd26d5e99f43a6e8d0fddc (patch)
tree87d489c9fcfdc5f61e9a716f8e863ad48ec1c48b /llvm/lib
parenta0222a1698b939a207653d882bf675c56b3ed116 (diff)
downloadbcm5719-llvm-dd3bf8e4a2952082c5cd26d5e99f43a6e8d0fddc.tar.gz
bcm5719-llvm-dd3bf8e4a2952082c5cd26d5e99f43a6e8d0fddc.zip
Use CommentString where possible, fix a bug where aix mode wouldn't assemble
due to basic blocks being misnamed. llvm-svn: 24459
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp b/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
index 723fa5a65be..aeb3214a0a4 100644
--- a/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
+++ b/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
@@ -590,7 +590,7 @@ bool DarwinAsmPrinter::doFinalization(Module &M) {
/// method to print assembly for each instruction.
///
bool AIXAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
- CurrentFnName = MF.getFunction()->getName();
+ SetupMachineFunction(MF);
// Print out constants referenced by the function
printConstantPool(MF.getConstantPool());
@@ -610,8 +610,8 @@ bool AIXAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
for (MachineFunction::const_iterator I = MF.begin(), E = MF.end();
I != E; ++I) {
// Print a label for the basic block.
- O << PrivateGlobalPrefix << "BB" << CurrentFnName << '_' << I->getNumber()
- << ":\t# " << I->getBasicBlock()->getName() << '\n';
+ O << PrivateGlobalPrefix << "BB" << FunctionNumber << '_' << I->getNumber()
+ << ":\t" << CommentString << I->getBasicBlock()->getName() << '\n';
for (MachineBasicBlock::const_iterator II = I->begin(), E = I->end();
II != E; ++II) {
// Print the assembly for the instruction.
@@ -697,7 +697,7 @@ bool AIXAsmPrinter::doFinalization(Module &M) {
O << "\t.comm " << Name << "," << TD.getTypeSize(I->getType())
<< "," << Log2_32((unsigned)TD.getTypeAlignment(I->getType()));
}
- O << "\t\t# ";
+ O << "\t\t" << CommentString << " ";
WriteAsOperand(O, I, false, true, &M);
O << "\n";
}
OpenPOWER on IntegriCloud