diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-07-25 17:53:33 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-07-25 17:53:33 +0000 |
commit | 5b11d49a7c2ea35903004198dd5570afe6ab0529 (patch) | |
tree | 51b3718bd357aff0b481f5294d8d987a94a738fe /clang/lib/AST/DeclarationName.cpp | |
parent | f2430ba223687538681071ce4746a2878ad3db53 (diff) | |
download | bcm5719-llvm-5b11d49a7c2ea35903004198dd5570afe6ab0529.tar.gz bcm5719-llvm-5b11d49a7c2ea35903004198dd5570afe6ab0529.zip |
Make ASTContext always use the BumpPtrAllocator.
llvm-svn: 109375
Diffstat (limited to 'clang/lib/AST/DeclarationName.cpp')
-rw-r--r-- | clang/lib/AST/DeclarationName.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/clang/lib/AST/DeclarationName.cpp b/clang/lib/AST/DeclarationName.cpp index 343d403e76a..606ce891807 100644 --- a/clang/lib/AST/DeclarationName.cpp +++ b/clang/lib/AST/DeclarationName.cpp @@ -404,26 +404,6 @@ DeclarationNameTable::~DeclarationNameTable() { = static_cast<llvm::FoldingSet<CXXLiteralOperatorIdName>*> (CXXLiteralOperatorNames); - if (Ctx.FreeMemory) { - llvm::FoldingSetIterator<CXXSpecialName> - SI = SpecialNames->begin(), SE = SpecialNames->end(); - - while (SI != SE) { - CXXSpecialName *n = &*SI++; - Ctx.Deallocate(n); - } - - llvm::FoldingSetIterator<CXXLiteralOperatorIdName> - LI = LiteralNames->begin(), LE = LiteralNames->end(); - - while (LI != LE) { - CXXLiteralOperatorIdName *n = &*LI++; - Ctx.Deallocate(n); - } - - Ctx.Deallocate(CXXOperatorNames); - } - delete SpecialNames; delete LiteralNames; } |