mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 06:33:24 +00:00
Enhance the fixed length disassembler to better handle operand decoding failures.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136635 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
423b81e692
commit
7f76baed5e
@ -744,8 +744,8 @@ void FilterChooser::emitBinaryParser(raw_ostream &o, unsigned &Indentation,
|
||||
}
|
||||
|
||||
if (Decoder != "")
|
||||
o.indent(Indentation) << " " << Decoder
|
||||
<< "(MI, tmp, Address, Decoder);\n";
|
||||
o.indent(Indentation) << " if (!" << Decoder
|
||||
<< "(MI, tmp, Address, Decoder)) return false;\n";
|
||||
else
|
||||
o.indent(Indentation) << " MI.addOperand(MCOperand::CreateImm(tmp));\n";
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user