reducing the size of all declarations by one pointer. For a 64-bit
Clang parsing Cocoa.h, this saves ~630k of memory (about 3.5% of
ASTContext's memory usage for this header).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125756
91177308-0d34-0410-b5e6-
96231b3b80d8
if (Decl::CollectingStats()) add(DK);
}
- virtual ~Decl();
-
public:
/// \brief Source range that this declaration covers.
// Decl Implementation
//===----------------------------------------------------------------------===//
-// Out-of-line virtual method providing a home for Decl.
-Decl::~Decl() { }
-
bool Decl::isOutOfLine() const {
if (const VarDecl *VD = dyn_cast<VarDecl>(this))
return VD->isOutOfLine();