summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-05-26 15:18:13 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-05-26 15:18:13 +0000
commit3627af5da45cbf253ca3eab9c24d98d382c26f65 (patch)
tree582758d16bf94e1348e08ebc82863127d7f85c86 /llvm/lib/MC
parentc28a6c9251ab29e521953061b86c26d78ed4fda4 (diff)
downloadbcm5719-llvm-3627af5da45cbf253ca3eab9c24d98d382c26f65.tar.gz
bcm5719-llvm-3627af5da45cbf253ca3eab9c24d98d382c26f65.zip
MC: Change MCInst::dump_pretty to not include a trailing newline.
llvm-svn: 104696
Diffstat (limited to 'llvm/lib/MC')
-rw-r--r--llvm/lib/MC/MCAsmStreamer.cpp6
-rw-r--r--llvm/lib/MC/MCInst.cpp2
2 files changed, 5 insertions, 3 deletions
diff --git a/llvm/lib/MC/MCAsmStreamer.cpp b/llvm/lib/MC/MCAsmStreamer.cpp
index f9182c57f6b..57b2bcceb1a 100644
--- a/llvm/lib/MC/MCAsmStreamer.cpp
+++ b/llvm/lib/MC/MCAsmStreamer.cpp
@@ -669,9 +669,11 @@ void MCAsmStreamer::EmitInstruction(const MCInst &Inst) {
AddEncodingComment(Inst);
// Show the MCInst if enabled.
- if (ShowInst)
+ if (ShowInst) {
Inst.dump_pretty(GetCommentOS(), &MAI, InstPrinter.get(), "\n ");
-
+ GetCommentOS() << "\n";
+ }
+
// If we have an AsmPrinter, use that to print, otherwise print the MCInst.
if (InstPrinter)
InstPrinter->printInst(&Inst, OS);
diff --git a/llvm/lib/MC/MCInst.cpp b/llvm/lib/MC/MCInst.cpp
index de142dc9553..4cb628b395c 100644
--- a/llvm/lib/MC/MCInst.cpp
+++ b/llvm/lib/MC/MCInst.cpp
@@ -57,7 +57,7 @@ void MCInst::dump_pretty(raw_ostream &OS, const MCAsmInfo *MAI,
OS << Separator;
getOperand(i).print(OS, MAI);
}
- OS << ">\n";
+ OS << ">";
}
void MCInst::dump() const {
OpenPOWER on IntegriCloud