diff options
author | Sebastian Redl <sebastian.redl@getdesigned.at> | 2010-07-27 18:24:41 +0000 |
---|---|---|
committer | Sebastian Redl <sebastian.redl@getdesigned.at> | 2010-07-27 18:24:41 +0000 |
commit | d692af71226d2fb537d86c670af96114ddd485c3 (patch) | |
tree | 911bdd7619417c34757323f4b31000c0529d6039 /lib/Frontend/PCHReader.cpp | |
parent | b698688fe116ef6fc4711798af7292537f4d0d12 (diff) |
Update the list of lexical decls in the TU for chained PCHs. This makes -ast-print show the decls from the dependent PCH.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109524 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/PCHReader.cpp')
-rw-r--r-- | lib/Frontend/PCHReader.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/Frontend/PCHReader.cpp b/lib/Frontend/PCHReader.cpp index 37e11249f8..a0e3148bc7 100644 --- a/lib/Frontend/PCHReader.cpp +++ b/lib/Frontend/PCHReader.cpp @@ -1539,6 +1539,16 @@ PCHReader::ReadPCHBlock(PerFileData &F) { F.LocalNumDecls = Record[0]; break; + case pch::TU_UPDATE_LEXICAL: { + DeclContextInfo Info = { + /* No visible information */ 0, 0, + reinterpret_cast<const pch::DeclID *>(BlobStart), + BlobLen / sizeof(pch::DeclID) + }; + DeclContextOffsets[Context->getTranslationUnitDecl()].push_back(Info); + break; + } + case pch::LANGUAGE_OPTIONS: if (ParseLanguageOptions(Record) && !DisableValidation) return IgnorePCH; |