diff options
| author | Chris Lattner <sabre@nondot.org> | 2002-04-28 21:25:41 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2002-04-28 21:25:41 +0000 |
| commit | ee2ff5da74ce33b587d8d0928a348f5e899339c9 (patch) | |
| tree | b617902813375955a31e1b035fcf096118fd46a6 /llvm/lib | |
| parent | 37c86671904127eddbd0fd0709dbee26021246c4 (diff) | |
| download | bcm5719-llvm-ee2ff5da74ce33b587d8d0928a348f5e899339c9.tar.gz bcm5719-llvm-ee2ff5da74ce33b587d8d0928a348f5e899339c9.zip | |
Move FunctionPass::doesNotModifyCFG to AnalysisUsage::preservesCFG()
llvm-svn: 2384
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/VMCore/Pass.cpp | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/llvm/lib/VMCore/Pass.cpp b/llvm/lib/VMCore/Pass.cpp index ff9ac928b96..c3c9d456b5e 100644 --- a/llvm/lib/VMCore/Pass.cpp +++ b/llvm/lib/VMCore/Pass.cpp @@ -24,6 +24,21 @@ void AnalysisResolver::setAnalysisResolver(Pass *P, AnalysisResolver *AR) { P->Resolver = AR; } + +// preservesCFG - This function should be called to by the pass, iff they do +// not: +// +// 1. Add or remove basic blocks from the function +// 2. Modify terminator instructions in any way. +// +// This function annotates the AnalysisUsage info object to say that analyses +// that only depend on the CFG are preserved by this pass. +// +void AnalysisUsage::preservesCFG() { + // FIXME: implement preservesCFG +} + + //===----------------------------------------------------------------------===// // PassManager implementation - The PassManager class is a simple Pimpl class // that wraps the PassManagerT template. @@ -142,20 +157,6 @@ void FunctionPass::addToPassManager(PassManagerT<Function> *PM, PM->addPass(this, AU); } -// doesNotModifyCFG - This function should be called by our subclasses to -// implement the getAnalysisUsage virtual function, iff they do not: -// -// 1. Add or remove basic blocks from the function -// 2. Modify terminator instructions in any way. -// -// This function annotates the AnalysisUsage info object to say that analyses -// that only depend on the CFG are preserved by this pass. -// -void FunctionPass::doesNotModifyCFG(AnalysisUsage &Info) { - -} - - //===----------------------------------------------------------------------===// // BasicBlockPass Implementation // |

