summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/ASTContext.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2010-05-10 20:56:10 +0000
committerTed Kremenek <kremenek@apple.com>2010-05-10 20:56:10 +0000
commit7e550caf4e66d705248e7670ca915755e67cd15d (patch)
tree5d2a1726177377cdfe42f6993ba4027eae1c4104 /clang/lib/AST/ASTContext.cpp
parent58aff8fb5784e0bb9792d595650b2812121f2422 (diff)
downloadbcm5719-llvm-7e550caf4e66d705248e7670ca915755e67cd15d.tar.gz
bcm5719-llvm-7e550caf4e66d705248e7670ca915755e67cd15d.zip
Allocate most of DeclarationNamesTable using ASTContext's allcocator. The only things that
aren't allocated this way are the internal FoldingSets. llvm-svn: 103429
Diffstat (limited to 'clang/lib/AST/ASTContext.cpp')
-rw-r--r--clang/lib/AST/ASTContext.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp
index 3a8084833e4..71ef09ab18c 100644
--- a/clang/lib/AST/ASTContext.cpp
+++ b/clang/lib/AST/ASTContext.cpp
@@ -110,9 +110,6 @@ ASTContext::~ASTContext() {
if (GlobalNestedNameSpecifier)
GlobalNestedNameSpecifier->Destroy(*this);
- // Deallocate the memory associated with the DeclarationNameTable.
- DeclarationNames.DoDestroy(*this);
-
TUDecl->Destroy(*this);
}
OpenPOWER on IntegriCloud