[llvm-commits] [llvm] r84712 - /llvm/trunk/lib/Target/MSP430/AsmPrinter/MSP430InstPrinter.cpp
Anton Korobeynikov
asl at math.spbu.ru
Tue Oct 20 17:13:59 PDT 2009
Author: asl
Date: Tue Oct 20 19:13:58 2009
New Revision: 84712
URL: http://llvm.org/viewvc/llvm-project?rev=84712&view=rev
Log:
Be crazy and assert in case of unsupported modifier passed.
Modified:
llvm/trunk/lib/Target/MSP430/AsmPrinter/MSP430InstPrinter.cpp
Modified: llvm/trunk/lib/Target/MSP430/AsmPrinter/MSP430InstPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/MSP430/AsmPrinter/MSP430InstPrinter.cpp?rev=84712&r1=84711&r2=84712&view=diff
==============================================================================
--- llvm/trunk/lib/Target/MSP430/AsmPrinter/MSP430InstPrinter.cpp (original)
+++ llvm/trunk/lib/Target/MSP430/AsmPrinter/MSP430InstPrinter.cpp Tue Oct 20 19:13:58 2009
@@ -47,6 +47,7 @@
void MSP430InstPrinter::printOperand(const MCInst *MI, unsigned OpNo,
const char *Modifier) {
+ assert((Modifier == 0 || Modifier[0] == 0) && "No modifiers supported");
const MCOperand &Op = MI->getOperand(OpNo);
if (Op.isReg()) {
O << getRegisterName(Op.getReg());
More information about the llvm-commits
mailing list