HexagonInstPrinter.cpp: Suppress -Wunused-variable warnings with -Asserts.

llvm-svn: 155281
This commit is contained in:
NAKAMURA Takumi 2012-04-21 11:24:55 +00:00
parent 0aa0d3d633
commit df3d5ea990
1 changed files with 3 additions and 6 deletions

View File

@ -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);
}