mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-22 20:43:44 +02:00
Enhance the fixed length disassembler to better handle operand decoding failures.
llvm-svn: 136635
This commit is contained in:
parent
4ee266955a
commit
703d9b30bf
@ -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…
Reference in New Issue
Block a user