forked from OSchip/llvm-project
Add instance predicate method to match static method.
llvm-svn: 76832
This commit is contained in:
parent
5939402e2c
commit
4cd5577cdf
|
@ -738,6 +738,7 @@ public:
|
|||
bool isIncrementDecrementOp() const { return Opc>=PostInc && Opc<=PreDec; }
|
||||
bool isOffsetOfOp() const { return Opc == OffsetOf; }
|
||||
static bool isArithmeticOp(Opcode Op) { return Op >= Plus && Op <= LNot; }
|
||||
bool isArithmeticOp() const { return isArithmeticOp(Opc); }
|
||||
|
||||
/// getOpcodeStr - Turn an Opcode enum value into the punctuation char it
|
||||
/// corresponds to, e.g. "sizeof" or "[pre]++"
|
||||
|
|
Loading…
Reference in New Issue