@@ -772,10 +772,6 @@ void ClangExpressionDeclMap::LookUpLldbClass(NameSearchContext &context) {
772
772
return ;
773
773
774
774
AddContextClassType (context, TypeFromUser (m_ctx_obj->GetCompilerType ()));
775
-
776
- m_struct_vars->m_object_pointer_type =
777
- TypeFromUser (ctx_obj_ptr->GetCompilerType ());
778
-
779
775
return ;
780
776
}
781
777
@@ -810,18 +806,6 @@ void ClangExpressionDeclMap::LookUpLldbClass(NameSearchContext &context) {
810
806
class_qual_type.getAsString ());
811
807
812
808
AddContextClassType (context, class_user_type);
813
-
814
- if (method_decl->isInstance ()) {
815
- // self is a pointer to the object
816
-
817
- QualType class_pointer_type =
818
- method_decl->getASTContext ().getPointerType (class_qual_type);
819
-
820
- TypeFromUser self_user_type (class_pointer_type.getAsOpaquePtr (),
821
- function_decl_ctx.GetTypeSystem ());
822
-
823
- m_struct_vars->m_object_pointer_type = self_user_type;
824
- }
825
809
return ;
826
810
}
827
811
@@ -852,8 +836,6 @@ void ClangExpressionDeclMap::LookUpLldbClass(NameSearchContext &context) {
852
836
ClangUtil::GetQualType (pointee_type).getAsString ());
853
837
854
838
AddContextClassType (context, pointee_type);
855
- TypeFromUser this_user_type (this_type->GetFullCompilerType ());
856
- m_struct_vars->m_object_pointer_type = this_user_type;
857
839
}
858
840
}
859
841
@@ -869,10 +851,6 @@ void ClangExpressionDeclMap::LookUpLldbObjCClass(NameSearchContext &context) {
869
851
return ;
870
852
871
853
AddOneType (context, TypeFromUser (m_ctx_obj->GetCompilerType ()));
872
-
873
- m_struct_vars->m_object_pointer_type =
874
- TypeFromUser (ctx_obj_ptr->GetCompilerType ());
875
-
876
854
return ;
877
855
}
878
856
@@ -917,28 +895,6 @@ void ClangExpressionDeclMap::LookUpLldbObjCClass(NameSearchContext &context) {
917
895
ClangUtil::ToString (interface_type));
918
896
919
897
AddOneType (context, class_user_type);
920
-
921
- if (method_decl->isInstanceMethod ()) {
922
- // self is a pointer to the object
923
-
924
- QualType class_pointer_type =
925
- method_decl->getASTContext ().getObjCObjectPointerType (
926
- QualType (interface_type, 0 ));
927
-
928
- TypeFromUser self_user_type (class_pointer_type.getAsOpaquePtr (),
929
- function_decl_ctx.GetTypeSystem ());
930
-
931
- m_struct_vars->m_object_pointer_type = self_user_type;
932
- } else {
933
- // self is a Class pointer
934
- QualType class_type = method_decl->getASTContext ().getObjCClassType ();
935
-
936
- TypeFromUser self_user_type (class_type.getAsOpaquePtr (),
937
- function_decl_ctx.GetTypeSystem ());
938
-
939
- m_struct_vars->m_object_pointer_type = self_user_type;
940
- }
941
-
942
898
return ;
943
899
}
944
900
// This branch will get hit if we are executing code in the context of
@@ -981,10 +937,6 @@ void ClangExpressionDeclMap::LookUpLldbObjCClass(NameSearchContext &context) {
981
937
TypeFromUser class_user_type (self_clang_type);
982
938
983
939
AddOneType (context, class_user_type);
984
-
985
- TypeFromUser self_user_type (self_type->GetFullCompilerType ());
986
-
987
- m_struct_vars->m_object_pointer_type = self_user_type;
988
940
}
989
941
990
942
void ClangExpressionDeclMap::LookupLocalVarNamespace (
0 commit comments