forked from OSchip/llvm-project
HexagonInstPrinter.cpp: Suppress -Wunused-variable warnings with -Asserts.
llvm-svn: 155281
This commit is contained in:
parent
0aa0d3d633
commit
df3d5ea990
|
@ -113,24 +113,21 @@ void HexagonInstPrinter::printFrameIndexOperand
|
|||
|
||||
void HexagonInstPrinter::printGlobalOperand(const MCInst *MI, unsigned OpNo,
|
||||
raw_ostream &O) const {
|
||||
const MCOperand& MO = MI->getOperand(OpNo);
|
||||
assert(MO.isExpr() && "Expecting expression");
|
||||
assert(MI->getOperand(OpNo).isExpr() && "Expecting expression");
|
||||
|
||||
printOperand(MI, OpNo, O);
|
||||
}
|
||||
|
||||
void HexagonInstPrinter::printJumpTable(const MCInst *MI, unsigned OpNo,
|
||||
raw_ostream &O) const {
|
||||
const MCOperand& MO = MI->getOperand(OpNo);
|
||||
assert(MO.isExpr() && "Expecting expression");
|
||||
assert(MI->getOperand(OpNo).isExpr() && "Expecting expression");
|
||||
|
||||
printOperand(MI, OpNo, O);
|
||||
}
|
||||
|
||||
void HexagonInstPrinter::printConstantPool(const MCInst *MI, unsigned OpNo,
|
||||
raw_ostream &O) const {
|
||||
const MCOperand& MO = MI->getOperand(OpNo);
|
||||
assert(MO.isExpr() && "Expecting expression");
|
||||
assert(MI->getOperand(OpNo).isExpr() && "Expecting expression");
|
||||
|
||||
printOperand(MI, OpNo, O);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue