Change if (cond) ... else llvm_unreachable("text") to assert(cond && "text") ...

llvm-svn: 185392
This commit is contained in:
Richard Trieu 2013-07-01 23:06:23 +00:00
parent 4a142ec6b0
commit fab01e5cea
1 changed files with 5 additions and 7 deletions

View File

@ -199,12 +199,10 @@ void HexagonInstPrinter::printSymbol(const MCInst *MI, unsigned OpNo,
const MCOperand& MO = MI->getOperand(OpNo);
O << '#' << (hi? "HI": "LO") << '(';
if (MO.isImm()) {
O << '#';
printOperand(MI, OpNo, O);
} else {
llvm_unreachable("Unknown symbol operand");
printOperand(MI, OpNo, O);
}
assert(MO.isImm() && "Unknown symbol operand");
O << '#';
printOperand(MI, OpNo, O);
O << ')';
}