aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/TranslationUnit.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-03-28 04:00:23 +0000
committerChris Lattner <sabre@nondot.org>2009-03-28 04:00:23 +0000
commit3776d4cea4f15e04f32997742deb4b35b72c9b8c (patch)
tree9f1e8a83495150633b91d96526882d0b790ed101 /lib/AST/TranslationUnit.cpp
parentd2fa67570b363843215f62395b795c1f70e6b85f (diff)
simplify away some dead ownership stuff, TranslationUnit is now
just a wrapper around ASTContext. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67906 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/TranslationUnit.cpp')
-rw-r--r--lib/AST/TranslationUnit.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/AST/TranslationUnit.cpp b/lib/AST/TranslationUnit.cpp
index df135edf63..57f9f4ebc8 100644
--- a/lib/AST/TranslationUnit.cpp
+++ b/lib/AST/TranslationUnit.cpp
@@ -28,15 +28,6 @@ using namespace clang;
TranslationUnit::~TranslationUnit() {
- if (OwnsMetaData && Context) {
- // The ASTContext object has the sole references to the IdentifierTable
- // Selectors, and the Target information. Go and delete them, since
- // the TranslationUnit effectively owns them.
- delete &Context->Idents;
- delete &Context->Selectors;
- delete &Context->Target;
- delete Context;
- }
}
bool clang::EmitASTBitcodeBuffer(const ASTContext &Ctx,