[Lldb-commits] [lldb] r152064 - /lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp
Sean Callanan
scallanan at apple.com
Mon Mar 5 14:08:20 PST 2012
Author: spyffe
Date: Mon Mar 5 16:08:20 2012
New Revision: 152064
URL: http://llvm.org/viewvc/llvm-project?rev=152064&view=rev
Log:
Made sure to store the type for "this" when in a
C++ method.
Modified:
lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp
Modified: lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp?rev=152064&r1=152063&r2=152064&view=diff
==============================================================================
--- lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp (original)
+++ lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp Mon Mar 5 16:08:20 2012
@@ -2433,6 +2433,18 @@
AddOneType(context, class_user_type, current_id, true);
+ if (method_decl->isInstance())
+ {
+ // self is a pointer to the object
+
+ QualType class_pointer_type = method_decl->getASTContext().getPointerType(class_qual_type);
+
+ TypeFromUser self_user_type(class_pointer_type.getAsOpaquePtr(),
+ &method_decl->getASTContext());
+
+ m_struct_vars->m_object_pointer_type = self_user_type;
+ }
+
return;
}
More information about the lldb-commits
mailing list