Fix expression evaluation with operator new
authorPavel Labath <labath@google.com>
Mon, 15 Aug 2016 14:32:32 +0000 (14:32 +0000)
committerPavel Labath <labath@google.com>
Mon, 15 Aug 2016 14:32:32 +0000 (14:32 +0000)
commit1ac2b20d25869f7dafd8a5f9b99f43eb60a07bb2
treec641f44aee757720089228a31b3c69d79a4ec32c
parentad61c170d5ac9f5a6fa22ad7ddac7e58daa6b46e
Fix expression evaluation with operator new

Summary:
referencing a user-defined operator new was triggering an assert in clang because we were
registering the function name as string "operator new", instead of using the special operator
enum, which clang has for this purpose. Method operators already had code to handle this, and now
I extend this to cover free standing operator functions as well. Test included.

Reviewers: spyffe

Subscribers: sivachandra, paulherman, lldb-commits

Differential Revision: http://reviews.llvm.org/D17856

llvm-svn: 278670
lldb/include/lldb/Symbol/ClangASTContext.h
lldb/packages/Python/lldbsuite/test/lang/cpp/global_operators/TestCppGlobalOperators.py
lldb/packages/Python/lldbsuite/test/lang/cpp/global_operators/main.cpp
lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp
lldb/source/Symbol/ClangASTContext.cpp