diff options
Diffstat (limited to 'lib/Target/Hexagon/InstPrinter/HexagonInstPrinter.cpp')
-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 << ')'; } |