aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/Mips/AsmPrinter/MipsAsmPrinter.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/Mips/AsmPrinter/MipsAsmPrinter.cpp
parent1ba3eab98cecdf0fd6c3aba1d750d4072b2f97d0 (diff)
downloadexternal_llvm-ae18179a38d3ea80e7505a36e35313b9b075cf28.zip
external_llvm-ae18179a38d3ea80e7505a36e35313b9b075cf28.tar.gz
external_llvm-ae18179a38d3ea80e7505a36e35313b9b075cf28.tar.bz2
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/Mips/AsmPrinter/MipsAsmPrinter.cpp')
-rw-r--r--lib/Target/Mips/AsmPrinter/MipsAsmPrinter.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/Target/Mips/AsmPrinter/MipsAsmPrinter.cpp b/lib/Target/Mips/AsmPrinter/MipsAsmPrinter.cpp
index e806938..231c6de 100644
--- a/lib/Target/Mips/AsmPrinter/MipsAsmPrinter.cpp
+++ b/lib/Target/Mips/AsmPrinter/MipsAsmPrinter.cpp
@@ -37,10 +37,10 @@
#include "llvm/Target/TargetMachine.h"
#include "llvm/Target/TargetOptions.h"
#include "llvm/Target/TargetRegistry.h"
-#include "llvm/Support/ErrorHandling.h"
+#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/Support/Debug.h"
-#include "llvm/Support/CommandLine.h"
+#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/FormattedStream.h"
#include "llvm/Support/MathExtras.h"
#include <cctype>
@@ -77,8 +77,10 @@ namespace {
void printInstruction(const MachineInstr *MI, raw_ostream &O); // autogen'd.
void EmitInstruction(const MachineInstr *MI) {
- printInstruction(MI, O);
- OutStreamer.AddBlankLine();
+ SmallString<128> Str;
+ raw_svector_ostream OS(Str);
+ printInstruction(MI, OS);
+ OutStreamer.EmitRawText(OS.str());
}
virtual void EmitFunctionBodyStart();
virtual void EmitFunctionBodyEnd();