]> granicus.if.org Git - clang/commitdiff
Add a utility method.
authorZhongxing Xu <xuzhongxing@gmail.com>
Thu, 25 Mar 2010 06:33:37 +0000 (06:33 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Thu, 25 Mar 2010 06:33:37 +0000 (06:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99495 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Checker/PathSensitive/SymbolManager.h

index b6630c3d97d2b8242dd68b460c7137cc581811d3..70e9ce6ba239e80bae8f4f18ac633fed25fff928 100644 (file)
@@ -247,6 +247,7 @@ public:
              QualType t)
     : SymExpr(SymSymKind), LHS(lhs), Op(op), RHS(rhs), T(t) {}
 
+  BinaryOperator::Opcode getOpcode() const { return Op; }
   const SymExpr *getLHS() const { return LHS; }
   const SymExpr *getRHS() const { return RHS; }