mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-03 13:31:05 +00:00
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:
parent
5186591cf5
commit
b0bbfaf3b3
@ -196,13 +196,9 @@ void HexagonInstPrinter::printPredicateOperand(const MCInst *MI, unsigned OpNo,
|
|||||||
|
|
||||||
void HexagonInstPrinter::printSymbol(const MCInst *MI, unsigned OpNo,
|
void HexagonInstPrinter::printSymbol(const MCInst *MI, unsigned OpNo,
|
||||||
raw_ostream &O, bool hi) const {
|
raw_ostream &O, bool hi) const {
|
||||||
const MCOperand& MO = MI->getOperand(OpNo);
|
assert(MI->getOperand(OpNo).isImm() && "Unknown symbol operand");
|
||||||
|
|
||||||
O << '#' << (hi? "HI": "LO") << '(';
|
O << '#' << (hi ? "HI" : "LO") << "(#";
|
||||||
|
|
||||||
assert(MO.isImm() && "Unknown symbol operand");
|
|
||||||
|
|
||||||
O << '#';
|
|
||||||
printOperand(MI, OpNo, O);
|
printOperand(MI, OpNo, O);
|
||||||
O << ')';
|
O << ')';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user