diff options
author | Chris Lattner <sabre@nondot.org> | 2002-07-30 19:49:39 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-07-30 19:49:39 +0000 |
commit | 55b45bfae3692c2a757f7c877e83b0b2e33a1247 (patch) | |
tree | c8a84d060fdd3548790e1d03726ad44438c8e34b | |
parent | 55e41ba3d293699e47fdeb8996cc743b2018bde8 (diff) |
Add hooks to get information out of concrete pass manager implementations
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3164 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/PassAnalysisSupport.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/PassAnalysisSupport.h b/include/llvm/PassAnalysisSupport.h index 092be346c7..c08b883024 100644 --- a/include/llvm/PassAnalysisSupport.h +++ b/include/llvm/PassAnalysisSupport.h @@ -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; |