]> granicus.if.org Git - clang/commitdiff
The AST reader and writer don't need accessors for poking at the predefined Objective...
authorDouglas Gregor <dgregor@apple.com>
Thu, 11 Aug 2011 22:04:35 +0000 (22:04 +0000)
committerDouglas Gregor <dgregor@apple.com>
Thu, 11 Aug 2011 22:04:35 +0000 (22:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137366 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Serialization/ASTReader.cpp
lib/Serialization/ASTWriter.cpp

index b2300e0249d415b1aadf9311f787e4c408afb72a..f3ce0e9b548c2bafb1c47e8ccf97eaba33270c79 100644 (file)
@@ -2966,13 +2966,13 @@ void ASTReader::InitializeContext(ASTContext &Ctx) {
     Context->setBuiltinVaListType(
       GetType(SpecialTypes[SPECIAL_TYPE_BUILTIN_VA_LIST]));
     if (unsigned Id = SpecialTypes[SPECIAL_TYPE_OBJC_ID])
-      Context->setObjCIdType(GetType(Id));
+      Context->ObjCIdTypedefType = GetType(Id);
     if (unsigned Sel = SpecialTypes[SPECIAL_TYPE_OBJC_SELECTOR])
-      Context->setObjCSelType(GetType(Sel));
+      Context->ObjCSelTypedefType = GetType(Sel);
     if (unsigned Proto = SpecialTypes[SPECIAL_TYPE_OBJC_PROTOCOL])
-      Context->setObjCProtoType(GetType(Proto));
+      Context->ObjCProtoType = GetType(Proto);
     if (unsigned Class = SpecialTypes[SPECIAL_TYPE_OBJC_CLASS])
-      Context->setObjCClassType(GetType(Class));
+      Context->ObjCClassTypedefType = GetType(Class);
 
     if (unsigned String = SpecialTypes[SPECIAL_TYPE_CF_CONSTANT_STRING])
       Context->setCFConstantStringType(GetType(String));
index 1b33efc1056c78cf235bd2fee9f505dd703c0630..fe747a5150f94bb7c7c9ee22b06878cb3845bbd8 100644 (file)
@@ -2929,10 +2929,10 @@ void ASTWriter::WriteASTCore(Sema &SemaRef, MemorizeStatCalls *StatCalls,
   // Form the record of special types.
   RecordData SpecialTypes;
   AddTypeRef(Context.getBuiltinVaListType(), SpecialTypes);
-  AddTypeRef(Context.getObjCIdType(), SpecialTypes);
-  AddTypeRef(Context.getObjCSelType(), SpecialTypes);
-  AddTypeRef(Context.getObjCProtoType(), SpecialTypes);
-  AddTypeRef(Context.getObjCClassType(), SpecialTypes);
+  AddTypeRef(Context.ObjCIdTypedefType, SpecialTypes);
+  AddTypeRef(Context.ObjCSelTypedefType, SpecialTypes);
+  AddTypeRef(Context.ObjCProtoType, SpecialTypes);
+  AddTypeRef(Context.ObjCClassTypedefType, SpecialTypes);
   AddTypeRef(Context.getRawCFConstantStringType(), SpecialTypes);
   AddTypeRef(Context.getFILEType(), SpecialTypes);
   AddTypeRef(Context.getjmp_bufType(), SpecialTypes);