summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/DeclarationName.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-07-25 17:53:33 +0000
committerDouglas Gregor <dgregor@apple.com>2010-07-25 17:53:33 +0000
commit5b11d49a7c2ea35903004198dd5570afe6ab0529 (patch)
tree51b3718bd357aff0b481f5294d8d987a94a738fe /clang/lib/AST/DeclarationName.cpp
parentf2430ba223687538681071ce4746a2878ad3db53 (diff)
downloadbcm5719-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.cpp20
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;
}
OpenPOWER on IntegriCloud