diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2013-07-02 17:24:00 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2013-07-02 17:24:00 +0000 |
commit | b0bbfaf3b3e659d22c6dcdf5c1ea71e1089dabba (patch) | |
tree | ff5ec191d23a6bff35569e6e845d842eb6bb7c10 | |
parent | 5186591cf5076b87a8a7114016f029f1a3efca93 (diff) | |
download | external_llvm-b0bbfaf3b3e659d22c6dcdf5c1ea71e1089dabba.zip external_llvm-b0bbfaf3b3e659d22c6dcdf5c1ea71e1089dabba.tar.gz external_llvm-b0bbfaf3b3e659d22c6dcdf5c1ea71e1089dabba.tar.bz2 |
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
-rw-r--r-- | lib/Target/Hexagon/InstPrinter/HexagonInstPrinter.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/Target/Hexagon/InstPrinter/HexagonInstPrinter.cpp b/lib/Target/Hexagon/InstPrinter/HexagonInstPrinter.cpp index bcfd9bb..2ea0d2e 100644 --- a/lib/Target/Hexagon/InstPrinter/HexagonInstPrinter.cpp +++ b/lib/Target/Hexagon/InstPrinter/HexagonInstPrinter.cpp @@ -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); - - O << '#' << (hi? "HI": "LO") << '('; - - assert(MO.isImm() && "Unknown symbol operand"); + assert(MI->getOperand(OpNo).isImm() && "Unknown symbol operand"); - O << '#'; + O << '#' << (hi ? "HI" : "LO") << "(#"; printOperand(MI, OpNo, O); O << ')'; } |