mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-25 16:31:33 +00:00
Make the disassembler respect the assembler dialect when printing instructions,
patch by Marius Wachtler! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101160 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
97e6992e3e
commit
f23c769294
@ -142,7 +142,9 @@ int Disassembler::disassemble(const Target &T, const std::string &Triple,
|
||||
return -1;
|
||||
}
|
||||
|
||||
OwningPtr<MCInstPrinter> IP(T.createMCInstPrinter(0, *AsmInfo));
|
||||
int AsmPrinterVariant = AsmInfo->getAssemblerDialect();
|
||||
OwningPtr<MCInstPrinter> IP(T.createMCInstPrinter(AsmPrinterVariant,
|
||||
*AsmInfo));
|
||||
if (!IP) {
|
||||
errs() << "error: no instruction printer for target " << Triple << '\n';
|
||||
return -1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user