diff options
author | Chris Lattner <sabre@nondot.org> | 2009-03-28 04:00:23 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-03-28 04:00:23 +0000 |
commit | d070278ec9378fb87d99e0043cdc99c4c45a115e (patch) | |
tree | d580cfe11a6917125ef43e252d20b4ca609d6f1d /clang/lib/AST/TranslationUnit.cpp | |
parent | edf7eb77cf4e06460f818d1f30368643d1cc32bc (diff) | |
download | bcm5719-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.cpp | 9 |
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, |