diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-03-28 01:44:40 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-03-28 01:44:40 +0000 |
| commit | a6f4ca2b6ff423e4f72c84f357f613e124e95f59 (patch) | |
| tree | 3814c0be443f68b16ad49978bb284e1879e2289f /clang/lib | |
| parent | 84bcc4795e5bae96ae547421d8615471bbc87148 (diff) | |
| download | bcm5719-llvm-a6f4ca2b6ff423e4f72c84f357f613e124e95f59.tar.gz bcm5719-llvm-a6f4ca2b6ff423e4f72c84f357f613e124e95f59.zip | |
remove TranslationUnit::OwnsDecls, which is only set, never read.
llvm-svn: 67891
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/AST/ASTContext.cpp | 3 | ||||
| -rw-r--r-- | clang/lib/AST/TranslationUnit.cpp | 7 |
2 files changed, 4 insertions, 6 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp index da6e049732e..3fe6db83428 100644 --- a/clang/lib/AST/ASTContext.cpp +++ b/clang/lib/AST/ASTContext.cpp @@ -35,8 +35,7 @@ ASTContext::ASTContext(const LangOptions& LOpts, SourceManager &SM, bool FreeMem, unsigned size_reserve) : GlobalNestedNameSpecifier(0), CFConstantStringTypeDecl(0), ObjCFastEnumerationStateTypeDecl(0), SourceMgr(SM), LangOpts(LOpts), - FreeMemory(FreeMem), Target(t), Idents(idents), Selectors(sels) -{ + FreeMemory(FreeMem), Target(t), Idents(idents), Selectors(sels) { if (size_reserve > 0) Types.reserve(size_reserve); InitBuiltinTypes(); BuiltinInfo.InitializeBuiltins(idents, Target, LangOpts.NoBuiltin); diff --git a/clang/lib/AST/TranslationUnit.cpp b/clang/lib/AST/TranslationUnit.cpp index 95cad39f681..ed84241df42 100644 --- a/clang/lib/AST/TranslationUnit.cpp +++ b/clang/lib/AST/TranslationUnit.cpp @@ -35,10 +35,9 @@ TranslationUnit::~TranslationUnit() { // 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->Idents; + delete &Context->Selectors; + delete &Context->Target; delete Context; } } |

