Add to the disassembler C API an option to print the disassembled
authorKevin Enderby <enderby@apple.com>
Tue, 18 Dec 2012 23:47:28 +0000 (23:47 +0000)
committerKevin Enderby <enderby@apple.com>
Tue, 18 Dec 2012 23:47:28 +0000 (23:47 +0000)
commit85cf531593039e0d9e4d95114e9a588df45498a6
tree3c15d51654e8ed43002455a37ed648a01054a983
parent0b510bca73be0ced95a68b1accfd3bf4fdc290ae
Add to the disassembler C API an option to print the disassembled
instructions in the assembly code variant if one exists.

The intended use for this is so tools like lldb and darwin's otool(1)
can be switched to print Intel-flavored disassembly.

I discussed extensively this API with Jim Grosbach and we feel
while it may not be fully general, in reality there is only one syntax
for each assembly with the exception of X86 which has exactly
two for historical reasons.

rdar://10989182

llvm-svn: 170477
llvm/include/llvm-c/Disassembler.h
llvm/lib/MC/MCDisassembler/Disassembler.cpp
llvm/lib/MC/MCDisassembler/Disassembler.h