commit | 7ad07c46362500f7291a92742569e94fd3538dfd | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Sun Apr 04 06:12:20 2010 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Sun Apr 04 06:12:20 2010 +0000 |
tree | 4177ff3c8a5ec267cffc4baa9fddd5e4691cf479 | |
parent | f2777d7cd9fb9d4e58776221bf36c3c0dc1ab9c9 [diff] [blame] |
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
diff --git a/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp b/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp index b0cc6bf..6ec648e 100644 --- a/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp +++ b/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp
@@ -601,8 +601,10 @@ } } - printInstruction(MI, O); - OutStreamer.AddBlankLine(); + SmallString<128> Str; + raw_svector_ostream OS(Str); + printInstruction(MI, OS); + OutStreamer.EmitRawText(OS.str()); } void PPCLinuxAsmPrinter::EmitFunctionEntryLabel() {