diff --git a/docs/WritingAnLLVMPass.html b/docs/WritingAnLLVMPass.html index 14811fd94bc..de73db3fe5c 100644 --- a/docs/WritingAnLLVMPass.html +++ b/docs/WritingAnLLVMPass.html @@ -694,14 +694,14 @@ href="http://llvm.cs.uiuc.edu/doxygen/classAnalysisUsage.html">AnalysisUsage // setPreservesAll - Call this if the pass does not modify its input at all void AnalysisUsage::setPreservesAll(); - // preservesCFG - This function should be called by the pass, iff they do not: + // setPreservesCFG - This function should be called by the pass, iff they do not: // // 1. Add or remove basic blocks from the function // 2. Modify terminator instructions in any way. // // This is automatically implied for BasicBlockPass's // - void AnalysisUsage::preservesCFG(); + void AnalysisUsage::setPreservesCFG();
Some examples of how to use these methods are:
@@ -720,7 +720,7 @@ and:
// This example modifies the program, but does not modify the CFG void LICM::getAnalysisUsage(AnalysisUsage &AU) const { - AU.preservesCFG(); + AU.setPreservesCFG(); AU.addRequired<LoopInfo>(); }
@@ -1223,6 +1223,6 @@ href="#Pass">Pass, only the other way around.
Chris Lattner -Last modified: Wed Sep 25 17:20:10 CDT 2002 +Last modified: Mon Oct 21 14:52:55 CDT 2002