summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-04-04 06:12:20 +0000
committerChris Lattner <sabre@nondot.org>2010-04-04 06:12:20 +0000
commit3d86cd6710e167f956faf14aa9f747cf206e336a (patch)
tree0607b347f407f4336da43ec2d74d55ceee8af78e /llvm/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp
parent83a093183c9e6ec8fb6df6246abd81857844070b (diff)
downloadbcm5719-llvm-3d86cd6710e167f956faf14aa9f747cf206e336a.tar.gz
bcm5719-llvm-3d86cd6710e167f956faf14aa9f747cf206e336a.zip
convert the non-MCInstPrinter'ized EmitInstruction
implementations to use EmitRawText instead of writing directly to "O". llvm-svn: 100318
Diffstat (limited to 'llvm/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp b/llvm/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp
index b0cc6bf2cc4..6ec648e4a6f 100644
--- a/llvm/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp
+++ b/llvm/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp
@@ -601,8 +601,10 @@ void PPCAsmPrinter::EmitInstruction(const MachineInstr *MI) {
}
}
- printInstruction(MI, O);
- OutStreamer.AddBlankLine();
+ SmallString<128> Str;
+ raw_svector_ostream OS(Str);
+ printInstruction(MI, OS);
+ OutStreamer.EmitRawText(OS.str());
}
void PPCLinuxAsmPrinter::EmitFunctionEntryLabel() {
OpenPOWER on IntegriCloud