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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185392 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Richard Trieu 2013-07-01 23:06:23 +00:00
parent bbeba2c200
commit a785a7bf51

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 << ')';
}