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
diff --git a/clang/include/clang/AST/Decl.h b/clang/include/clang/AST/Decl.h
index bbd3ef3..569608a 100644
--- a/clang/include/clang/AST/Decl.h
+++ b/clang/include/clang/AST/Decl.h
@@ -185,16 +185,9 @@
/// \brief Determine whether this declaration has linkage.
bool hasLinkage() const;
- /// \brief Whether this declaration was marked as being private to the
- /// module in which it was defined.
- bool isModulePrivate() const { return ModulePrivate; }
-
- /// \brief Specify whether this declaration was marked as being private
- /// to the module in which it was defined.
- void setModulePrivate(bool MP = true) {
- ModulePrivate = MP;
- }
-
+ using Decl::isModulePrivate;
+ using Decl::setModulePrivate;
+
/// \brief Determine whether this declaration is hidden from name lookup.
bool isHidden() const { return Hidden; }