summaryrefslogtreecommitdiff
path: root/include/clang/AST/DeclarationName.h
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
commit45d9c2d2b1b4ada29160edadc071db9779c0ec07 (patch)
treeb14405cf03cb39865e3de2a95dc87aafd8bcc992 /include/clang/AST/DeclarationName.h
parentac9590effa90406767a544005ed1de52e258306b (diff)
downloadclang-45d9c2d2b1b4ada29160edadc071db9779c0ec07.tar.gz
clang-45d9c2d2b1b4ada29160edadc071db9779c0ec07.tar.bz2
clang-45d9c2d2b1b4ada29160edadc071db9779c0ec07.tar.xz
Allocate most of DeclarationNamesTable using ASTContext's allcocator. The only things that
aren't allocated this way are the internal FoldingSets. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103429 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/AST/DeclarationName.h')
-rw-r--r--include/clang/AST/DeclarationName.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/include/clang/AST/DeclarationName.h b/include/clang/AST/DeclarationName.h
index 6e8316014e..8a771d513c 100644
--- a/include/clang/AST/DeclarationName.h
+++ b/include/clang/AST/DeclarationName.h
@@ -314,6 +314,7 @@ inline bool operator>=(DeclarationName LHS, DeclarationName RHS) {
/// retrieved using its member functions (e.g.,
/// getCXXConstructorName).
class DeclarationNameTable {
+ ASTContext &Ctx;
void *CXXSpecialNamesImpl; // Actually a FoldingSet<CXXSpecialName> *
CXXOperatorIdName *CXXOperatorNames; // Operator names
void *CXXLiteralOperatorNames; // Actually a CXXOperatorIdName*
@@ -325,10 +326,6 @@ public:
DeclarationNameTable(ASTContext &C);
~DeclarationNameTable();
- /// Free all memory allocated associated with this DeclarationTable that
- // is used allocated using the specified ASTContext object.
- void DoDestroy(ASTContext &C);
-
/// getIdentifier - Create a declaration name that is a simple
/// identifier.
DeclarationName getIdentifier(const IdentifierInfo *ID) {