From a84c02d0f4d63975a1c52b9bb8308d88e9d79352 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Tue, 27 Jul 2010 18:49:04 +0000 Subject: [PATCH] Add non-static version of BinaryOperator::getOpcodeStr(). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109526 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/AST/Expr.h | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.40.0