[llvm-branch-commits] [llvm-branch] r104764 - in /llvm/branches/Apple/whitney/lib: MC/MCAsmStreamer.cpp MC/MCInst.cpp Target/X86/X86AsmBackend.cpp
Daniel Dunbar
daniel at zuster.org
Wed May 26 15:28:49 PDT 2010
Author: ddunbar
Date: Wed May 26 17:28:49 2010
New Revision: 104764
URL: http://llvm.org/viewvc/llvm-project?rev=104764&view=rev
Log:
MC: Change MCInst::dump_pretty to not include a trailing newline.
Modified:
llvm/branches/Apple/whitney/lib/MC/MCAsmStreamer.cpp
llvm/branches/Apple/whitney/lib/MC/MCInst.cpp
llvm/branches/Apple/whitney/lib/Target/X86/X86AsmBackend.cpp
Modified: llvm/branches/Apple/whitney/lib/MC/MCAsmStreamer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/whitney/lib/MC/MCAsmStreamer.cpp?rev=104764&r1=104763&r2=104764&view=diff
==============================================================================
--- llvm/branches/Apple/whitney/lib/MC/MCAsmStreamer.cpp (original)
+++ llvm/branches/Apple/whitney/lib/MC/MCAsmStreamer.cpp Wed May 26 17:28:49 2010
@@ -669,9 +669,11 @@
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);
Modified: llvm/branches/Apple/whitney/lib/MC/MCInst.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/whitney/lib/MC/MCInst.cpp?rev=104764&r1=104763&r2=104764&view=diff
==============================================================================
--- llvm/branches/Apple/whitney/lib/MC/MCInst.cpp (original)
+++ llvm/branches/Apple/whitney/lib/MC/MCInst.cpp Wed May 26 17:28:49 2010
@@ -57,7 +57,7 @@
OS << Separator;
getOperand(i).print(OS, MAI);
}
- OS << ">\n";
+ OS << ">";
}
void MCInst::dump() const {
Modified: llvm/branches/Apple/whitney/lib/Target/X86/X86AsmBackend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/whitney/lib/Target/X86/X86AsmBackend.cpp?rev=104764&r1=104763&r2=104764&view=diff
==============================================================================
--- llvm/branches/Apple/whitney/lib/Target/X86/X86AsmBackend.cpp (original)
+++ llvm/branches/Apple/whitney/lib/Target/X86/X86AsmBackend.cpp Wed May 26 17:28:49 2010
@@ -124,6 +124,7 @@
SmallString<256> Tmp;
raw_svector_ostream OS(Tmp);
IF->getInst().dump_pretty(OS);
+ OS << "\n";
report_fatal_error("unexpected instruction to relax: " + OS.str());
}
More information about the llvm-branch-commits
mailing list