[cfe-commits] r67907 - /cfe/trunk/tools/clang-cc/AnalysisConsumer.cpp

Chris Lattner sabre at nondot.org
Fri Mar 27 21:05:06 PDT 2009


Author: lattner
Date: Fri Mar 27 23:05:05 2009
New Revision: 67907

URL: http://llvm.org/viewvc/llvm-project?rev=67907&view=rev
Log:
remove dead ivar.

Modified:
    cfe/trunk/tools/clang-cc/AnalysisConsumer.cpp

Modified: cfe/trunk/tools/clang-cc/AnalysisConsumer.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/clang-cc/AnalysisConsumer.cpp?rev=67907&r1=67906&r2=67907&view=diff

==============================================================================
--- cfe/trunk/tools/clang-cc/AnalysisConsumer.cpp (original)
+++ cfe/trunk/tools/clang-cc/AnalysisConsumer.cpp Fri Mar 27 23:05:05 2009
@@ -231,7 +231,6 @@
   
   class VISIBILITY_HIDDEN AnalysisManager : public BugReporterData {
     Decl* D; Stmt* Body; 
-    TranslationUnit* TU;
     
     enum AnalysisScope { ScopeTU, ScopeDecl } AScope;
       
@@ -248,14 +247,13 @@
 
   public:
     AnalysisManager(AnalysisConsumer& c, Decl* d, Stmt* b, bool displayProgress) 
-      : D(d), Body(b), TU(0), AScope(ScopeDecl), C(c), 
+      : D(d), Body(b), AScope(ScopeDecl), C(c), 
         DisplayedFunction(!displayProgress) {
       setManagerCreators();
     }
     
-    AnalysisManager(AnalysisConsumer& c, TranslationUnit* tu,
-                    bool displayProgress) 
-      : D(0), Body(0), TU(tu), AScope(ScopeTU), C(c),
+    AnalysisManager(AnalysisConsumer& c, bool displayProgress) 
+      : D(0), Body(0), AScope(ScopeTU), C(c),
         DisplayedFunction(!displayProgress) {
       setManagerCreators();
     }
@@ -270,11 +268,6 @@
       return Body;
     }
     
-    TranslationUnit* getTranslationUnit() const {
-      assert (AScope == ScopeTU);
-      return TU;
-    }    
-    
     StoreManagerCreator getStoreManagerCreator() {
       return CreateStoreMgr;
     };
@@ -454,7 +447,7 @@
 void AnalysisConsumer::HandleTranslationUnit(TranslationUnit& TU) {
 
   if(!TranslationUnitActions.empty()) {
-    AnalysisManager mgr(*this, &TU, AnalyzerDisplayProgress);
+    AnalysisManager mgr(*this, AnalyzerDisplayProgress);
     for (Actions::iterator I = TranslationUnitActions.begin(), 
          E = TranslationUnitActions.end(); I != E; ++I)
       (*I)(mgr);  





More information about the cfe-commits mailing list