Adding support for printing operands symbolically to llvm's public 'C'
authorKevin Enderby <enderby@apple.com>
Mon, 11 Apr 2011 18:08:50 +0000 (18:08 +0000)
committerKevin Enderby <enderby@apple.com>
Mon, 11 Apr 2011 18:08:50 +0000 (18:08 +0000)
commitbd3327654b5708f1ba92aff3ab25b1bbf5034797
tree560fde902b2414f053380fe98f0bc1d2b7c2d366
parent0fb215a154a5f9f54eea1ce8b006ba9bce5defa1
Adding support for printing operands symbolically to llvm's public 'C'
disassembler API.  Hooked this up to the ARM target so such tools as Darwin's
otool(1) can now print things like branch targets for example this:
  blx _puts
instead of this:
  blx #-36
And even print the expression encoded in the Mach-O relocation entried for
things like this:
  movt r0, :upper16:((_foo-_bar)+1234)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129284 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm-c/Disassembler.h
include/llvm/MC/MCDisassembler.h
lib/MC/MCDisassembler/Disassembler.cpp
lib/MC/MCDisassembler/Disassembler.h
lib/Target/ARM/Disassembler/ARMDisassembler.cpp
lib/Target/ARM/Disassembler/ARMDisassemblerCore.cpp
lib/Target/ARM/Disassembler/ARMDisassemblerCore.h
lib/Target/ARM/Disassembler/ThumbDisassemblerCore.h