aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/DeclBase.cpp
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2009-01-27 21:25:57 +0000
committerSteve Naroff <snaroff@apple.com>2009-01-27 21:25:57 +0000
commit3e9704981d7691fdd44913bf1786e8d760d8a627 (patch)
treef12080dcb7a2121faf5e46c34bb20774292b73c0 /lib/AST/DeclBase.cpp
parent6262cc40d8108a13e6a7e96e1b2c91d8e1b9c2dc (diff)
Remove many references to ASTContext::getAllocator(), replacing them with calls to the recently added placement new (which uses ASTContext's allocator for memory). Also added ASTContext::Deallocate().
This will simplify runtime replacement of ASTContext's allocator. Keeping the allocator private (and removing getAllocator() entirely) is also goodness. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63135 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/DeclBase.cpp')
-rw-r--r--lib/AST/DeclBase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AST/DeclBase.cpp b/lib/AST/DeclBase.cpp
index 016f7b1e04..983c726c22 100644
--- a/lib/AST/DeclBase.cpp
+++ b/lib/AST/DeclBase.cpp
@@ -405,7 +405,7 @@ void Decl::Destroy(ASTContext& C) {
}
this->~Decl();
- C.getAllocator().Deallocate((void *)this);
+ C.Deallocate((void *)this);
#endif
}