diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-08-12 06:49:56 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-08-12 06:49:56 +0000 |
commit | 801c99d22d01d493b1073f95de1bced536897478 (patch) | |
tree | 254c874965b10b47c70462620650f9a16c888d2b /clang/lib/Serialization/ASTReader.cpp | |
parent | 5113dc8e549c3c5e324e9dd3ed3ef17338721130 (diff) | |
download | bcm5719-llvm-801c99d22d01d493b1073f95de1bced536897478.tar.gz bcm5719-llvm-801c99d22d01d493b1073f95de1bced536897478.zip |
Switch the __int128_t and __uint128_t types over to predefined types
in the AST format, which are built lazily by the ASTContext when
requested.
llvm-svn: 137437
Diffstat (limited to 'clang/lib/Serialization/ASTReader.cpp')
-rw-r--r-- | clang/lib/Serialization/ASTReader.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/clang/lib/Serialization/ASTReader.cpp b/clang/lib/Serialization/ASTReader.cpp index c048f58fdba..53790fb8cc3 100644 --- a/clang/lib/Serialization/ASTReader.cpp +++ b/clang/lib/Serialization/ASTReader.cpp @@ -3075,9 +3075,6 @@ void ASTReader::InitializeContext(ASTContext &Ctx) { Context->ObjCSelRedefinitionType = GetType(ObjCSelRedef); } - if (SpecialTypes[SPECIAL_TYPE_INT128_INSTALLED]) - Context->setInt128Installed(); - ReadPragmaDiagnosticMappings(Context->getDiagnostics()); // If there were any CUDA special declarations, deserialize them. @@ -4222,6 +4219,14 @@ Decl *ASTReader::GetDecl(DeclID ID) { case PREDEF_DECL_OBJC_CLASS_ID: assert(Context && "No context available?"); return Context->getObjCClassDecl(); + + case PREDEF_DECL_INT_128_ID: + assert(Context && "No context available?"); + return Context->getInt128Decl(); + + case PREDEF_DECL_UNSIGNED_INT_128_ID: + assert(Context && "No context available?"); + return Context->getUInt128Decl(); } return 0; |