summaryrefslogtreecommitdiffstats
path: root/clang/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
commit13ae6f47cdf4f70c5a2c61ca9a7ccbbfcd4348f5 (patch)
treed8644c83950500600a2fbf17b9df18598cfa14e7 /clang/lib/AST/DeclBase.cpp
parent573e5291274d1e419a5996ac4a461a0275ad36bd (diff)
downloadbcm5719-llvm-13ae6f47cdf4f70c5a2c61ca9a7ccbbfcd4348f5.tar.gz
bcm5719-llvm-13ae6f47cdf4f70c5a2c61ca9a7ccbbfcd4348f5.zip
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. llvm-svn: 63135
Diffstat (limited to 'clang/lib/AST/DeclBase.cpp')
-rw-r--r--clang/lib/AST/DeclBase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/DeclBase.cpp b/clang/lib/AST/DeclBase.cpp
index 016f7b1e041..983c726c228 100644
--- a/clang/lib/AST/DeclBase.cpp
+++ b/clang/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
}
OpenPOWER on IntegriCloud