summaryrefslogtreecommitdiffstats
path: root/clang/lib/Serialization/ASTReaderDecl.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-09-09 02:06:17 +0000
committerDouglas Gregor <dgregor@apple.com>2011-09-09 02:06:17 +0000
commit26701a437139e7643df1b02e701fa2a4cfc44a65 (patch)
treeb901b0a95c2acc46390460381c253c8cb05192b1 /clang/lib/Serialization/ASTReaderDecl.cpp
parent2bd0401b04d472a155a6973f2c50905130742f45 (diff)
downloadbcm5719-llvm-26701a437139e7643df1b02e701fa2a4cfc44a65.tar.gz
bcm5719-llvm-26701a437139e7643df1b02e701fa2a4cfc44a65.zip
Modules: introduce the __module_private__ declaration specifier, which
indicates that a declaration is only visible within the module it is declared in. llvm-svn: 139348
Diffstat (limited to 'clang/lib/Serialization/ASTReaderDecl.cpp')
-rw-r--r--clang/lib/Serialization/ASTReaderDecl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Serialization/ASTReaderDecl.cpp b/clang/lib/Serialization/ASTReaderDecl.cpp
index e33085dbd77..1abf0d39eed 100644
--- a/clang/lib/Serialization/ASTReaderDecl.cpp
+++ b/clang/lib/Serialization/ASTReaderDecl.cpp
@@ -248,6 +248,7 @@ void ASTDeclReader::VisitDecl(Decl *D) {
D->setReferenced(Record[Idx++]);
D->setAccess((AccessSpecifier)Record[Idx++]);
D->setPCHLevel(Record[Idx++] + (F.Kind <= MK_PCH));
+ D->ModulePrivate = Record[Idx++];
}
void ASTDeclReader::VisitTranslationUnitDecl(TranslationUnitDecl *TU) {
OpenPOWER on IntegriCloud