]> granicus.if.org Git - clang/commit
Start converting pieces of DeclarationNameTable to be allocated using ASTContext...
authorTed Kremenek <kremenek@apple.com>
Mon, 10 May 2010 20:40:08 +0000 (20:40 +0000)
committerTed Kremenek <kremenek@apple.com>
Mon, 10 May 2010 20:40:08 +0000 (20:40 +0000)
commitac9590effa90406767a544005ed1de52e258306b
tree6220409f8e3d7896f93ce5d03c95422450452eb5
parentd04ed416be7c55bddddab1fa3fd38a0113a6b3da
Start converting pieces of DeclarationNameTable to be allocated using ASTContext's allocator.
While DeclarationNameTable doesn't leak, it uses 'malloc' too often.  Start with having
'CXXLiteralOperatorNames' allocated using ASTContext's allocator and add a 'DoDestroy()' method
to DeclarationNameTable that is called by ~ASTContext.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103426 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/ASTContext.h
include/clang/AST/DeclarationName.h
lib/AST/ASTContext.cpp
lib/AST/DeclarationName.cpp