summaryrefslogtreecommitdiffstats
path: root/clang/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
commitd070278ec9378fb87d99e0043cdc99c4c45a115e (patch)
treed580cfe11a6917125ef43e252d20b4ca609d6f1d /clang/lib/AST/TranslationUnit.cpp
parentedf7eb77cf4e06460f818d1f30368643d1cc32bc (diff)
downloadbcm5719-llvm-d070278ec9378fb87d99e0043cdc99c4c45a115e.tar.gz
bcm5719-llvm-d070278ec9378fb87d99e0043cdc99c4c45a115e.zip
simplify away some dead ownership stuff, TranslationUnit is now
just a wrapper around ASTContext. llvm-svn: 67906
Diffstat (limited to 'clang/lib/AST/TranslationUnit.cpp')
-rw-r--r--clang/lib/AST/TranslationUnit.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/clang/lib/AST/TranslationUnit.cpp b/clang/lib/AST/TranslationUnit.cpp
index df135edf637..57f9f4ebc80 100644
--- a/clang/lib/AST/TranslationUnit.cpp
+++ b/clang/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,
OpenPOWER on IntegriCloud