Hexagon: Avoid unused variable warnings in Release builds.

llvm-svn: 185445
This commit is contained in:
Benjamin Kramer 2013-07-02 17:24:00 +00:00
parent 00deddb6d8
commit 755bf4f692
1 changed files with 2 additions and 6 deletions

View File

@ -196,13 +196,9 @@ void HexagonInstPrinter::printPredicateOperand(const MCInst *MI, unsigned OpNo,
void HexagonInstPrinter::printSymbol(const MCInst *MI, unsigned OpNo,
raw_ostream &O, bool hi) const {
const MCOperand& MO = MI->getOperand(OpNo);
assert(MI->getOperand(OpNo).isImm() && "Unknown symbol operand");
O << '#' << (hi? "HI": "LO") << '(';
assert(MO.isImm() && "Unknown symbol operand");
O << '#';
O << '#' << (hi ? "HI" : "LO") << "(#";
printOperand(MI, OpNo, O);
O << ')';
}