mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
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:
parent
bbeba2c200
commit
a785a7bf51
@ -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 << ')';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user