Change assert(0 && "text") to llvm_unreachable(0 && "text")

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185243 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Richard Trieu
2013-06-28 23:46:19 +00:00
parent b41f4bbfbd
commit d1fe8d5212

View File

@@ -179,7 +179,7 @@ void HexagonInstPrinter::printBranchOperand(const MCInst *MI, unsigned OpNo,
raw_ostream &O) const { raw_ostream &O) const {
// Branches can take an immediate operand. This is used by the branch // Branches can take an immediate operand. This is used by the branch
// selection pass to print $+8, an eight byte displacement from the PC. // selection pass to print $+8, an eight byte displacement from the PC.
assert(0 && "Unknown branch operand."); llvm_unreachable("Unknown branch operand.");
} }
void HexagonInstPrinter::printCallOperand(const MCInst *MI, unsigned OpNo, void HexagonInstPrinter::printCallOperand(const MCInst *MI, unsigned OpNo,
@@ -203,7 +203,7 @@ void HexagonInstPrinter::printSymbol(const MCInst *MI, unsigned OpNo,
O << '#'; O << '#';
printOperand(MI, OpNo, O); printOperand(MI, OpNo, O);
} else { } else {
assert(0 && "Unknown symbol operand"); llvm_unreachable("Unknown symbol operand");
printOperand(MI, OpNo, O); printOperand(MI, OpNo, O);
} }
O << ')'; O << ')';