[llvm-commits] [llvm] r95441 - /llvm/trunk/lib/MC/MCAsmStreamer.cpp
Chris Lattner
sabre at nondot.org
Fri Feb 5 14:20:09 PST 2010
Author: lattner
Date: Fri Feb 5 16:20:08 2010
New Revision: 95441
URL: http://llvm.org/viewvc/llvm-project?rev=95441&view=rev
Log:
print encodings like this:
pslld 69, %mm3 ## encoding: [0x0f,0xf2,0x1c,0x25,0x45,0x00,0x00,0x00]
instead of like this:
pslld 69, %mm3 ## encoding: [0x0f,0xf2,0x1c,0x25,0x45,0000,0000,0000]
this only affects 0.
Modified:
llvm/trunk/lib/MC/MCAsmStreamer.cpp
Modified: llvm/trunk/lib/MC/MCAsmStreamer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCAsmStreamer.cpp?rev=95441&r1=95440&r2=95441&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCAsmStreamer.cpp (original)
+++ llvm/trunk/lib/MC/MCAsmStreamer.cpp Fri Feb 5 16:20:08 2010
@@ -552,7 +552,7 @@
for (unsigned i = 0, e = Code.size(); i != e; ++i) {
if (i)
OS << ',';
- OS << format("%#04x", uint8_t(Code[i]));
+ OS << format("0x%02x", uint8_t(Code[i]));
}
OS << "]\n";
}
More information about the llvm-commits
mailing list