[llvm-commits] [llvm] r155281 - /llvm/trunk/lib/Target/Hexagon/InstPrinter/HexagonInstPrinter.cpp
NAKAMURA Takumi
geek4civic at gmail.com
Sat Apr 21 04:24:55 PDT 2012
Author: chapuni
Date: Sat Apr 21 06:24:55 2012
New Revision: 155281
URL: http://llvm.org/viewvc/llvm-project?rev=155281&view=rev
Log:
HexagonInstPrinter.cpp: Suppress -Wunused-variable warnings with -Asserts.
Modified:
llvm/trunk/lib/Target/Hexagon/InstPrinter/HexagonInstPrinter.cpp
Modified: llvm/trunk/lib/Target/Hexagon/InstPrinter/HexagonInstPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/InstPrinter/HexagonInstPrinter.cpp?rev=155281&r1=155280&r2=155281&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/InstPrinter/HexagonInstPrinter.cpp (original)
+++ llvm/trunk/lib/Target/Hexagon/InstPrinter/HexagonInstPrinter.cpp Sat Apr 21 06:24:55 2012
@@ -113,24 +113,21 @@
void HexagonInstPrinter::printGlobalOperand(const MCInst *MI, unsigned OpNo,
raw_ostream &O) const {
- const MCOperand& MO = MI->getOperand(OpNo);
- assert(MO.isExpr() && "Expecting expression");
+ assert(MI->getOperand(OpNo).isExpr() && "Expecting expression");
printOperand(MI, OpNo, O);
}
void HexagonInstPrinter::printJumpTable(const MCInst *MI, unsigned OpNo,
raw_ostream &O) const {
- const MCOperand& MO = MI->getOperand(OpNo);
- assert(MO.isExpr() && "Expecting expression");
+ assert(MI->getOperand(OpNo).isExpr() && "Expecting expression");
printOperand(MI, OpNo, O);
}
void HexagonInstPrinter::printConstantPool(const MCInst *MI, unsigned OpNo,
raw_ostream &O) const {
- const MCOperand& MO = MI->getOperand(OpNo);
- assert(MO.isExpr() && "Expecting expression");
+ assert(MI->getOperand(OpNo).isExpr() && "Expecting expression");
printOperand(MI, OpNo, O);
}
More information about the llvm-commits
mailing list