Hexagon: Avoid unused variable warnings in Release builds.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185445 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Benjamin Kramer 2013-07-02 17:24:00 +00:00
parent 5186591cf5
commit b0bbfaf3b3

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