From 579531c61b1bef44bf2d05dc334b5e7eba86397c Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 3 Sep 2009 04:01:10 +0000 Subject: [PATCH] output alignment value in hex so that we get: .align 3, 0x90 instead of, .align 3, 144 suggested by eric. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80875 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/MC/MCAsmStreamer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/MC/MCAsmStreamer.cpp b/lib/MC/MCAsmStreamer.cpp index d97602830cb..58d18fea919 100644 --- a/lib/MC/MCAsmStreamer.cpp +++ b/lib/MC/MCAsmStreamer.cpp @@ -225,7 +225,8 @@ void MCAsmStreamer::EmitValueToAlignment(unsigned ByteAlignment, int64_t Value, OS << Log2_32(ByteAlignment); if (Value || MaxBytesToEmit) { - OS << ", " << truncateToSize(Value, ValueSize); + OS << ", 0x"; + OS.write_hex(truncateToSize(Value, ValueSize)); if (MaxBytesToEmit) OS << ", " << MaxBytesToEmit;