From 5b11d49a7c2ea35903004198dd5570afe6ab0529 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Sun, 25 Jul 2010 17:53:33 +0000 Subject: Make ASTContext always use the BumpPtrAllocator. llvm-svn: 109375 --- clang/lib/AST/DeclarationName.cpp | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'clang/lib/AST/DeclarationName.cpp') 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*> (CXXLiteralOperatorNames); - if (Ctx.FreeMemory) { - llvm::FoldingSetIterator - SI = SpecialNames->begin(), SE = SpecialNames->end(); - - while (SI != SE) { - CXXSpecialName *n = &*SI++; - Ctx.Deallocate(n); - } - - llvm::FoldingSetIterator - LI = LiteralNames->begin(), LE = LiteralNames->end(); - - while (LI != LE) { - CXXLiteralOperatorIdName *n = &*LI++; - Ctx.Deallocate(n); - } - - Ctx.Deallocate(CXXOperatorNames); - } - delete SpecialNames; delete LiteralNames; } -- cgit v1.2.3