[llvm-commits] [llvm] r136635 - /llvm/trunk/utils/TableGen/FixedLenDecoderEmitter.cpp
Owen Anderson
resistor at mac.com
Mon Aug 1 11:44:37 PDT 2011
Author: resistor
Date: Mon Aug 1 13:44:37 2011
New Revision: 136635
URL: http://llvm.org/viewvc/llvm-project?rev=136635&view=rev
Log:
Enhance the fixed length disassembler to better handle operand decoding failures.
Modified:
llvm/trunk/utils/TableGen/FixedLenDecoderEmitter.cpp
Modified: llvm/trunk/utils/TableGen/FixedLenDecoderEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/FixedLenDecoderEmitter.cpp?rev=136635&r1=136634&r2=136635&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/FixedLenDecoderEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/FixedLenDecoderEmitter.cpp Mon Aug 1 13:44:37 2011
@@ -744,8 +744,8 @@
}
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";
More information about the llvm-commits
mailing list