diff options
| author | John McCall <rjmccall@apple.com> | 2010-08-12 21:39:05 +0000 |
|---|---|---|
| committer | John McCall <rjmccall@apple.com> | 2010-08-12 21:39:05 +0000 |
| commit | 112fd083fafabcda3e9ead58d2359fd9e3f987c3 (patch) | |
| tree | 9a9df4d1aea0c0cd68906ae0d6d47a9a124a1681 /clang/lib/Sema/Sema.cpp | |
| parent | 35053747ccd308fd363ca6e6374af482ae561c8d (diff) | |
| download | bcm5719-llvm-112fd083fafabcda3e9ead58d2359fd9e3f987c3.tar.gz bcm5719-llvm-112fd083fafabcda3e9ead58d2359fd9e3f987c3.zip | |
Fixing the build isn't good enough; back out r110956 and r110953.
llvm-svn: 110958
Diffstat (limited to 'clang/lib/Sema/Sema.cpp')
| -rw-r--r-- | clang/lib/Sema/Sema.cpp | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/clang/lib/Sema/Sema.cpp b/clang/lib/Sema/Sema.cpp index 21ad1636177..e7f5bb4317f 100644 --- a/clang/lib/Sema/Sema.cpp +++ b/clang/lib/Sema/Sema.cpp @@ -18,7 +18,7 @@ #include "llvm/ADT/SmallSet.h" #include "llvm/ADT/APFloat.h" #include "clang/Sema/ExternalSemaSource.h" -#include "clang/Sema/SemaConsumer.h" +#include "clang/AST/ASTConsumer.h" #include "clang/AST/ASTContext.h" #include "clang/AST/ASTDiagnostic.h" #include "clang/AST/DeclObjC.h" @@ -143,18 +143,6 @@ Sema::Sema(Preprocessor &pp, ASTContext &ctxt, ASTConsumer &consumer, ExprEvalContexts.push_back( ExpressionEvaluationContextRecord(PotentiallyEvaluated, 0)); - - // Tell the AST consumer about this Sema object. - Consumer.Initialize(Context); - - // FIXME: Isn't this redundant with the initialization above? - if (SemaConsumer *SC = dyn_cast<SemaConsumer>(&Consumer)) - SC->InitializeSema(*this); - - // Tell the external Sema source about this Sema object. - if (ExternalSemaSource *ExternalSema - = dyn_cast_or_null<ExternalSemaSource>(Context.getExternalSource())) - ExternalSema->InitializeSema(*this); } Sema::~Sema() { @@ -163,15 +151,6 @@ Sema::~Sema() { delete TheTargetAttributesSema; while (!FunctionScopes.empty()) PopFunctionOrBlockScope(); - - // Tell the SemaConsumer to forget about us; we're going out of scope. - if (SemaConsumer *SC = dyn_cast<SemaConsumer>(&Consumer)) - SC->ForgetSema(); - - // Detach from the external Sema source. - if (ExternalSemaSource *ExternalSema - = dyn_cast_or_null<ExternalSemaSource>(Context.getExternalSource())) - ExternalSema->ForgetSema(); } /// ImpCastExprToType - If Expr is not of type 'Type', insert an implicit cast. |

