[cfe-commits] r109526 - /cfe/trunk/include/clang/AST/Expr.h

Ted Kremenek kremenek at apple.com
Tue Jul 27 11:49:04 PDT 2010


Author: kremenek
Date: Tue Jul 27 13:49:04 2010
New Revision: 109526

URL: http://llvm.org/viewvc/llvm-project?rev=109526&view=rev
Log:
Add non-static version of BinaryOperator::getOpcodeStr().

Modified:
    cfe/trunk/include/clang/AST/Expr.h

Modified: cfe/trunk/include/clang/AST/Expr.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Expr.h?rev=109526&r1=109525&r2=109526&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/Expr.h (original)
+++ cfe/trunk/include/clang/AST/Expr.h Tue Jul 27 13:49:04 2010
@@ -2244,6 +2244,8 @@
   /// corresponds to, e.g. "<<=".
   static const char *getOpcodeStr(Opcode Op);
 
+  const char *getOpcodeStr() const { return getOpcodeStr(Opc); }
+
   /// \brief Retrieve the binary opcode that corresponds to the given
   /// overloaded operator.
   static Opcode getOverloadedOpcode(OverloadedOperatorKind OO);





More information about the cfe-commits mailing list