Tighten up the AnalysisUsage of lots of passes, primarily to correctly indicate wheth...
authorChris Lattner <sabre@nondot.org>
Sun, 28 Apr 2002 21:26:51 +0000 (21:26 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 28 Apr 2002 21:26:51 +0000 (21:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2385 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Assembly/PrintModulePass.h

index fbab4e4a4507052d7781f714d856f6f53f2bb560..2d63e6d74f12b3c4517ede59abb6ccbefa3d7e65 100644 (file)
@@ -31,6 +31,10 @@ public:
     (*Out) << M;
     return false;
   }
+
+  virtual void getAnalysisUsage(AnalysisUsage &AU) const {
+    AU.setPreservesAll();
+  }
 };
 
 class PrintFunctionPass : public FunctionPass {
@@ -54,6 +58,10 @@ public:
     (*Out) << Banner << (Value*)F;
     return false;
   }
+  
+  virtual void getAnalysisUsage(AnalysisUsage &AU) const {
+    AU.setPreservesAll();
+  }
 };
 
 #endif