aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2010-07-27 18:49:04 +0000
committerTed Kremenek <kremenek@apple.com>2010-07-27 18:49:04 +0000
commita84c02d0f4d63975a1c52b9bb8308d88e9d79352 (patch)
treee45cc52db0306ad287a7ebc912863abd3acddd48
parentd692af71226d2fb537d86c670af96114ddd485c3 (diff)
Add non-static version of BinaryOperator::getOpcodeStr().
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109526 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/AST/Expr.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/clang/AST/Expr.h b/include/clang/AST/Expr.h
index f593b82889..d4f953c632 100644
--- a/include/clang/AST/Expr.h
+++ b/include/clang/AST/Expr.h
@@ -2244,6 +2244,8 @@ public:
/// 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);