mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 06:29:05 +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:
@@ -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 << ')';
|
||||||
|
Reference in New Issue
Block a user