diff options
author | Sean Callanan <scallanan@apple.com> | 2015-10-23 21:45:02 +0000 |
---|---|---|
committer | Sean Callanan <scallanan@apple.com> | 2015-10-23 21:45:02 +0000 |
commit | 3b436d23cac001eb403ea5b6813e856f2ddf78a4 (patch) | |
tree | 5a0e89d0b8cd5abe7d5a04edc794a1d7778f2009 /lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.h | |
parent | 671dadd8f63f1285452d986fdaec02b57b627f73 (diff) | |
download | bcm5719-llvm-3b436d23cac001eb403ea5b6813e856f2ddf78a4.tar.gz bcm5719-llvm-3b436d23cac001eb403ea5b6813e856f2ddf78a4.zip |
Fixed some issues with reporting "this" when the current function is not listed
in DWARF as a member of a class, but it has a "this" parameter. Specifically,
*this needs to have the LLDB expression added as a method.
This fixes TestWithLimitDebugInfo.
llvm-svn: 251151
Diffstat (limited to 'lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.h')
-rw-r--r-- | lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.h | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.h b/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.h index a8b874d8c34..b3f890c7acc 100644 --- a/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.h +++ b/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.h @@ -694,16 +694,19 @@ private: unsigned int current_id); //------------------------------------------------------------------ - /// Copy a C++ class type into the parser's AST context and add a - /// member function declaration to it for the expression. + /// Generate a Decl for "*this" and add a member function declaration + /// to it for the expression, then report it. + /// + /// @param[in] context + /// The NameSearchContext to use when constructing the Decl. /// /// @param[in] type - /// The type that needs to be created. + /// The type for *this. //------------------------------------------------------------------ - - TypeFromParser - CopyClassType(TypeFromUser &type, - unsigned int current_id); + void + AddThisType(NameSearchContext &context, + TypeFromUser &type, + unsigned int current_id); }; } // namespace lldb_private |