[llvm-commits] [llvm] r169393 - in /llvm/trunk: include/llvm-c/Disassembler.h include/llvm/MC/MCInstPrinter.h lib/MC/MCDisassembler/Disassembler.cpp lib/MC/MCInstPrinter.cpp lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp test/MC/Disassembler/ARM/hex-immediates.txt test/MC/Disassembler/X86/hex-immediates.txt tools/llvm-mc/llvm-mc.cpp
Chris Lattner
clattner at apple.com
Thu Dec 6 16:59:06 PST 2012
On Dec 5, 2012, at 10:13 AM, Kevin Enderby <enderby at apple.com> wrote:
> Author: enderby
> Date: Wed Dec 5 12:13:19 2012
> New Revision: 169393
>
> URL: http://llvm.org/viewvc/llvm-project?rev=169393&view=rev
> Log:
> Added a option to the disassembler to print immediates as hex.
>
> This is for the lldb team so most of but not all of the values are
> to be printed as hex with this option. Some small values like the
> scale in an X86 address were requested to printed in decimal
> without the leading 0x.
>
> There may be some tweaks need to places that may still be in
> decimal that they want in hex. Specially for arm. I made my best
> guess. Any tweaks from here should be simple.
Cool, would it make sense to print all numbers from 0-9 without the 0x prefix?
-Chris
More information about the llvm-commits
mailing list