mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-20 14:29:27 +00:00
HexagonInstPrinter.cpp: Suppress -Wunused-variable warnings with -Asserts.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155281 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2ddb84506c
commit
d1ad82f869
@ -113,24 +113,21 @@ void HexagonInstPrinter::printFrameIndexOperand
|
|||||||
|
|
||||||
void HexagonInstPrinter::printGlobalOperand(const MCInst *MI, unsigned OpNo,
|
void HexagonInstPrinter::printGlobalOperand(const MCInst *MI, unsigned OpNo,
|
||||||
raw_ostream &O) const {
|
raw_ostream &O) const {
|
||||||
const MCOperand& MO = MI->getOperand(OpNo);
|
assert(MI->getOperand(OpNo).isExpr() && "Expecting expression");
|
||||||
assert(MO.isExpr() && "Expecting expression");
|
|
||||||
|
|
||||||
printOperand(MI, OpNo, O);
|
printOperand(MI, OpNo, O);
|
||||||
}
|
}
|
||||||
|
|
||||||
void HexagonInstPrinter::printJumpTable(const MCInst *MI, unsigned OpNo,
|
void HexagonInstPrinter::printJumpTable(const MCInst *MI, unsigned OpNo,
|
||||||
raw_ostream &O) const {
|
raw_ostream &O) const {
|
||||||
const MCOperand& MO = MI->getOperand(OpNo);
|
assert(MI->getOperand(OpNo).isExpr() && "Expecting expression");
|
||||||
assert(MO.isExpr() && "Expecting expression");
|
|
||||||
|
|
||||||
printOperand(MI, OpNo, O);
|
printOperand(MI, OpNo, O);
|
||||||
}
|
}
|
||||||
|
|
||||||
void HexagonInstPrinter::printConstantPool(const MCInst *MI, unsigned OpNo,
|
void HexagonInstPrinter::printConstantPool(const MCInst *MI, unsigned OpNo,
|
||||||
raw_ostream &O) const {
|
raw_ostream &O) const {
|
||||||
const MCOperand& MO = MI->getOperand(OpNo);
|
assert(MI->getOperand(OpNo).isExpr() && "Expecting expression");
|
||||||
assert(MO.isExpr() && "Expecting expression");
|
|
||||||
|
|
||||||
printOperand(MI, OpNo, O);
|
printOperand(MI, OpNo, O);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user