mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
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:
parent
b41f4bbfbd
commit
d1fe8d5212
@ -179,7 +179,7 @@ void HexagonInstPrinter::printBranchOperand(const MCInst *MI, unsigned OpNo,
|
||||
raw_ostream &O) const {
|
||||
// Branches can take an immediate operand. This is used by the branch
|
||||
// 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,
|
||||
@ -203,7 +203,7 @@ void HexagonInstPrinter::printSymbol(const MCInst *MI, unsigned OpNo,
|
||||
O << '#';
|
||||
printOperand(MI, OpNo, O);
|
||||
} else {
|
||||
assert(0 && "Unknown symbol operand");
|
||||
llvm_unreachable("Unknown symbol operand");
|
||||
printOperand(MI, OpNo, O);
|
||||
}
|
||||
O << ')';
|
||||
|
Loading…
Reference in New Issue
Block a user