summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-02-17 18:14:32 +0000
committerDouglas Gregor <dgregor@apple.com>2011-02-17 18:14:32 +0000
commite5de7013c75df8d25506e93ce5ba9d7c7f3d47a6 (patch)
tree8d0be27fc426c918838d2e918054e93b7787ca3b /clang/lib
parentb494173c9310f90c69ce4541f6576d5856a41c8a (diff)
downloadbcm5719-llvm-e5de7013c75df8d25506e93ce5ba9d7c7f3d47a6.tar.gz
bcm5719-llvm-e5de7013c75df8d25506e93ce5ba9d7c7f3d47a6.zip
Remove the last virtual member function from the Decl hierarchy,
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). llvm-svn: 125756
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/AST/DeclBase.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/clang/lib/AST/DeclBase.cpp b/clang/lib/AST/DeclBase.cpp
index 437089a415f..be4d82a054e 100644
--- a/clang/lib/AST/DeclBase.cpp
+++ b/clang/lib/AST/DeclBase.cpp
@@ -288,9 +288,6 @@ void PrettyStackTraceDecl::print(llvm::raw_ostream &OS) const {
// 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();
OpenPOWER on IntegriCloud