summaryrefslogtreecommitdiffstats
path: root/clang/lib/Serialization/ASTWriterDecl.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2012-01-06 16:59:53 +0000
committerDouglas Gregor <dgregor@apple.com>2012-01-06 16:59:53 +0000
commit781f713deb542cd35080233ac6d3e86a28969788 (patch)
tree9952b0a56523bc480f67a874518a2eea6aca5266 /clang/lib/Serialization/ASTWriterDecl.cpp
parenta8105bc9cecb5936a4674f68ebf0e50669f41e0d (diff)
downloadbcm5719-llvm-781f713deb542cd35080233ac6d3e86a28969788.tar.gz
bcm5719-llvm-781f713deb542cd35080233ac6d3e86a28969788.zip
Stash Decl's TopLevelDeclInObjCContainer and ModulePrivate bits
into the two unused lower bits of the NextDeclInContext link, dropping the number of bits in Decl down to 32, and saving 8 bytes per declaration on x86-64. llvm-svn: 147660
Diffstat (limited to 'clang/lib/Serialization/ASTWriterDecl.cpp')
-rw-r--r--clang/lib/Serialization/ASTWriterDecl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Serialization/ASTWriterDecl.cpp b/clang/lib/Serialization/ASTWriterDecl.cpp
index 19d8372a91f..7ff1d5aab06 100644
--- a/clang/lib/Serialization/ASTWriterDecl.cpp
+++ b/clang/lib/Serialization/ASTWriterDecl.cpp
@@ -154,9 +154,9 @@ void ASTDeclWriter::VisitDecl(Decl *D) {
Record.push_back(D->isImplicit());
Record.push_back(D->isUsed(false));
Record.push_back(D->isReferenced());
- Record.push_back(D->TopLevelDeclInObjCContainer);
+ Record.push_back(D->isTopLevelDeclInObjCContainer());
Record.push_back(D->getAccess());
- Record.push_back(D->ModulePrivate);
+ Record.push_back(D->isModulePrivate());
Record.push_back(Writer.inferSubmoduleIDFromLocation(D->getLocation()));
}
OpenPOWER on IntegriCloud