1
0
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:
Owen Anderson 2011-08-01 18:44:37 +00:00
parent 4ee266955a
commit 703d9b30bf

View File

@ -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";