summaryrefslogtreecommitdiffstats
path: root/clang/lib/Serialization/ASTReader.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-08-11 22:04:35 +0000
committerDouglas Gregor <dgregor@apple.com>2011-08-11 22:04:35 +0000
commit09c4aa817758e394599148bb8201e29384008a18 (patch)
tree8e02f68ef01e60e89be0bbbe02c5e3cd699074c1 /clang/lib/Serialization/ASTReader.cpp
parent990554107090f5d4bb3bcc3be25ce1bbecc2d655 (diff)
downloadbcm5719-llvm-09c4aa817758e394599148bb8201e29384008a18.tar.gz
bcm5719-llvm-09c4aa817758e394599148bb8201e29384008a18.zip
The AST reader and writer don't need accessors for poking at the predefined Objective-C types
llvm-svn: 137366
Diffstat (limited to 'clang/lib/Serialization/ASTReader.cpp')
-rw-r--r--clang/lib/Serialization/ASTReader.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/Serialization/ASTReader.cpp b/clang/lib/Serialization/ASTReader.cpp
index b2300e0249d..f3ce0e9b548 100644
--- a/clang/lib/Serialization/ASTReader.cpp
+++ b/clang/lib/Serialization/ASTReader.cpp
@@ -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));
OpenPOWER on IntegriCloud