diff options
author | Steve Naroff <snaroff@apple.com> | 2009-07-15 18:40:39 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2009-07-15 18:40:39 +0000 |
commit | 1329fa0ed916257a2e56cb33ad0d17809c4f1a85 (patch) | |
tree | 6e415050b56f6de6ab287823ebee7e6a1991eeb5 /clang/lib/Frontend/PCHReader.cpp | |
parent | 850f8e4266b51ed51ee704fb3e8bab81042caf67 (diff) | |
download | bcm5719-llvm-1329fa0ed916257a2e56cb33ad0d17809c4f1a85.tar.gz bcm5719-llvm-1329fa0ed916257a2e56cb33ad0d17809c4f1a85.zip |
Implement the ObjC pseudo built-in types as clang "BuiltinType's". I say pseudo built-in types, since Sema still injects a typedef for recognition (i.e. they aren't truly built-ins from a parser perspective).
This removes the static data/methods on ObjCObjectPointerType while preserving the nice API (no need to fiddle with ASTContext:-).
This patch also adds Type::isObjCBuiltinType().
This should be the last fairly large patch related to recrafting the ObjC type system. The follow-on patches should be fairly small.
llvm-svn: 75808
Diffstat (limited to 'clang/lib/Frontend/PCHReader.cpp')
-rw-r--r-- | clang/lib/Frontend/PCHReader.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Frontend/PCHReader.cpp b/clang/lib/Frontend/PCHReader.cpp index 012c6fecfe3..8c26607b7c6 100644 --- a/clang/lib/Frontend/PCHReader.cpp +++ b/clang/lib/Frontend/PCHReader.cpp @@ -1986,6 +1986,8 @@ QualType PCHReader::GetType(pch::TypeID ID) { case pch::PREDEF_TYPE_NULLPTR_ID: T = Context->NullPtrTy; break; case pch::PREDEF_TYPE_CHAR16_ID: T = Context->Char16Ty; break; case pch::PREDEF_TYPE_CHAR32_ID: T = Context->Char32Ty; break; + case pch::PREDEF_TYPE_OBJC_ID: T = Context->ObjCBuiltinIdTy; break; + case pch::PREDEF_TYPE_OBJC_CLASS: T = Context->ObjCBuiltinClassTy; break; } assert(!T.isNull() && "Unknown predefined type"); |