* Rename MethodPass class to FunctionPass
[oota-llvm.git] / include / llvm / Analysis / DataStructure.h
index 2d21545aebbaf2bad3dc06634addbcefeb734c9e..90a4b5df233f4a2edb18892adcc4c0781eba411c 100644 (file)
@@ -485,11 +485,10 @@ public:
   // If the pass pipeline is done with this pass, we can release our memory...
   virtual void releaseMemory();
 
-  // getAnalysisUsageInfo - This obviously provides a call graph
-  virtual void getAnalysisUsageInfo(AnalysisSet &Required,
-                                    AnalysisSet &Destroyed,
-                                    AnalysisSet &Provided) {
-    Provided.push_back(ID);
+  // getAnalysisUsage - This obviously provides a call graph
+  virtual void getAnalysisUsage(AnalysisUsage &AU) const {
+    AU.setPreservesAll();
+    AU.addProvided(ID);
   }
 };