diff options
author | Kevin Enderby <enderby@apple.com> | 2012-12-18 23:47:28 +0000 |
---|---|---|
committer | Kevin Enderby <enderby@apple.com> | 2012-12-18 23:47:28 +0000 |
commit | 85cf531593039e0d9e4d95114e9a588df45498a6 (patch) | |
tree | 3c15d51654e8ed43002455a37ed648a01054a983 /llvm/include/llvm-c | |
parent | 0b510bca73be0ced95a68b1accfd3bf4fdc290ae (diff) | |
download | bcm5719-llvm-85cf531593039e0d9e4d95114e9a588df45498a6.tar.gz bcm5719-llvm-85cf531593039e0d9e4d95114e9a588df45498a6.zip |
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
Diffstat (limited to 'llvm/include/llvm-c')
-rw-r--r-- | llvm/include/llvm-c/Disassembler.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/include/llvm-c/Disassembler.h b/llvm/include/llvm-c/Disassembler.h index f0872c1436a..df65a7b2084 100644 --- a/llvm/include/llvm-c/Disassembler.h +++ b/llvm/include/llvm-c/Disassembler.h @@ -168,6 +168,8 @@ int LLVMSetDisasmOptions(LLVMDisasmContextRef DC, uint64_t Options); #define LLVMDisassembler_Option_UseMarkup 1 /* The option to print immediates as hex. */ #define LLVMDisassembler_Option_PrintImmHex 2 +/* The option use the other assembler printer variant */ +#define LLVMDisassembler_Option_AsmPrinterVariant 4 /** * Dispose of a disassembler context. |