diff options
author | Sam Bishop <sam@bishop.dhs.org> | 2008-04-11 15:01:25 +0000 |
---|---|---|
committer | Sam Bishop <sam@bishop.dhs.org> | 2008-04-11 15:01:25 +0000 |
commit | bb45c512e0dfbe96bfe377ac642e726c0ba0affa (patch) | |
tree | 2b6d21e68e9174f614f5e13ed341b289e23c909b /lib/AST/Decl.cpp | |
parent | f3c63ae44e1d2ad04fd7c760fa07d150c3217c18 (diff) |
Stub out and start using a Decl::Destroy() method.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49532 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Decl.cpp')
-rw-r--r-- | lib/AST/Decl.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/AST/Decl.cpp b/lib/AST/Decl.cpp index 2ef31e42e5..43da07cc24 100644 --- a/lib/AST/Decl.cpp +++ b/lib/AST/Decl.cpp @@ -329,6 +329,10 @@ const Attr *Decl::getAttrs() const { return (*DeclAttrs)[this]; } +void Decl::Destroy(ASTContext& C) const { + C.getAllocator().Deallocate((void *)this); +} + //===----------------------------------------------------------------------===// // DeclContext Implementation //===----------------------------------------------------------------------===// |