Add instance predicate method to match static method.

llvm-svn: 76832
This commit is contained in:
Ted Kremenek 2009-07-23 01:06:10 +00:00
parent 5939402e2c
commit 4cd5577cdf
1 changed files with 1 additions and 0 deletions

View File

@ -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]++"