forked from OSchip/llvm-project
Be crazy and assert in case of unsupported modifier passed.
llvm-svn: 84712
This commit is contained in:
parent
11074fa73e
commit
e43af4a085
|
@ -47,6 +47,7 @@ void MSP430InstPrinter::printPCRelImmOperand(const MCInst *MI, unsigned OpNo) {
|
|||
|
||||
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());
|
||||
|
|
Loading…
Reference in New Issue