[llvm-commits] [llvm] r80875 - /llvm/trunk/lib/MC/MCAsmStreamer.cpp
Chris Lattner
sabre at nondot.org
Wed Sep 2 21:01:10 PDT 2009
Author: lattner
Date: Wed Sep 2 23:01:10 2009
New Revision: 80875
URL: http://llvm.org/viewvc/llvm-project?rev=80875&view=rev
Log:
output alignment value in hex so that we get:
.align 3, 0x90
instead of,
.align 3, 144
suggested by eric.
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=80875&r1=80874&r2=80875&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCAsmStreamer.cpp (original)
+++ llvm/trunk/lib/MC/MCAsmStreamer.cpp Wed Sep 2 23:01:10 2009
@@ -225,7 +225,8 @@
OS << Log2_32(ByteAlignment);
if (Value || MaxBytesToEmit) {
- OS << ", " << truncateToSize(Value, ValueSize);
+ OS << ", 0x";
+ OS.write_hex(truncateToSize(Value, ValueSize));
if (MaxBytesToEmit)
OS << ", " << MaxBytesToEmit;
More information about the llvm-commits
mailing list