aboutsummaryrefslogtreecommitdiffstats
path: root/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
commitae18179a38d3ea80e7505a36e35313b9b075cf28 (patch)
tree4177ff3c8a5ec267cffc4baa9fddd5e4691cf479 /lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp
parent1ba3eab98cecdf0fd6c3aba1d750d4072b2f97d0 (diff)
downloadexternal_llvm-ae18179a38d3ea80e7505a36e35313b9b075cf28.tar.gz
external_llvm-ae18179a38d3ea80e7505a36e35313b9b075cf28.tar.bz2
external_llvm-ae18179a38d3ea80e7505a36e35313b9b075cf28.zip
convert the non-MCInstPrinter'ized EmitInstruction
implementations to use EmitRawText instead of writing directly to "O". git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100318 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp')
-rw-r--r--lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp b/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp
index b0cc6bf2cc..6ec648e4a6 100644
--- a/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp
+++ b/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() {