From 8291e0465b3864050c050a61db4fcd844cc0b52e Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 21 Oct 2002 19:57:59 +0000 Subject: [PATCH] Rename Analysis Usage methods git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4254 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/WritingAnLLVMPass.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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