Add hooks to get information out of concrete pass manager implementations
authorChris Lattner <sabre@nondot.org>
Tue, 30 Jul 2002 19:49:39 +0000 (19:49 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 30 Jul 2002 19:49:39 +0000 (19:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3164 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/PassAnalysisSupport.h

index 092be346c7c474d3052330d8c930296c5e01f7d6..c08b883024237c52e8bacc7b87d031da8411afd4 100644 (file)
@@ -85,7 +85,10 @@ struct AnalysisResolver {
     return getAnalysisOrNullUp(ID);
   }
 
+  // Methods for introspecting into pass manager objects...
   virtual unsigned getDepth() const = 0;
+  virtual unsigned getNumContainedPasses() const = 0;
+  virtual const Pass *getContainedPass(unsigned N) const = 0;
 
   virtual void markPassUsed(AnalysisID P, Pass *User) = 0;