diff options
author | Duncan Sands <baldrick@free.fr> | 2009-01-28 13:14:17 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2009-01-28 13:14:17 +0000 |
commit | 1465d61bdd36cfd6021036a527895f0dd358e97d (patch) | |
tree | 5a066582fade4aa68d9608de87fb15a0400fe12a /docs | |
parent | e02f724880ddb7ffe296cda3ffb9822761a13ce7 (diff) | |
download | llvm-1465d61bdd36cfd6021036a527895f0dd358e97d.tar.gz llvm-1465d61bdd36cfd6021036a527895f0dd358e97d.tar.bz2 llvm-1465d61bdd36cfd6021036a527895f0dd358e97d.tar.xz |
Rename getAnalysisToUpdate to getAnalysisIfAvailable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63198 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs')
-rw-r--r-- | docs/CompilerDriver.html | 2 | ||||
-rw-r--r-- | docs/WritingAnLLVMPass.html | 12 |
2 files changed, 8 insertions, 6 deletions
diff --git a/docs/CompilerDriver.html b/docs/CompilerDriver.html index fc687f1667..6338dd2476 100644 --- a/docs/CompilerDriver.html +++ b/docs/CompilerDriver.html @@ -611,7 +611,7 @@ errors as its status code.</p> <a href="mailto:foldr@codedgers.com">Mikhail Glushenkov</a><br /> <a href="http://llvm.org">LLVM Compiler Infrastructure</a><br /> -Last modified: $Date: 2008-12-11 11:34:48 -0600 (Thu, 11 Dec 2008) $ +Last modified: $Date$ </address></div> </div> </div> diff --git a/docs/WritingAnLLVMPass.html b/docs/WritingAnLLVMPass.html index 0f37ec276c..04bd926611 100644 --- a/docs/WritingAnLLVMPass.html +++ b/docs/WritingAnLLVMPass.html @@ -78,7 +78,8 @@ <li><a href="#AU::addRequired">The <tt>AnalysisUsage::addRequired<></tt> and <tt>AnalysisUsage::addRequiredTransitive<></tt> methods</a></li> <li><a href="#AU::addPreserved">The <tt>AnalysisUsage::addPreserved<></tt> method</a></li> <li><a href="#AU::examples">Example implementations of <tt>getAnalysisUsage</tt></a></li> - <li><a href="#getAnalysis">The <tt>getAnalysis<></tt> and <tt>getAnalysisToUpdate<></tt> methods</a></li> + <li><a href="#getAnalysis">The <tt>getAnalysis<></tt> and +<tt>getAnalysisIfAvailable<></tt> methods</a></li> </ul></li> <li><a href="#analysisgroup">Implementing Analysis Groups</a> <ul> @@ -1131,7 +1132,8 @@ the fact that it hacks on the CFG. <!-- _______________________________________________________________________ --> <div class="doc_subsubsection"> - <a name="getAnalysis">The <tt>getAnalysis<></tt> and <tt>getAnalysisToUpdate<></tt> methods</a> + <a name="getAnalysis">The <tt>getAnalysis<></tt> and +<tt>getAnalysisIfAvailable<></tt> methods</a> </div> <div class="doc_text"> @@ -1173,12 +1175,12 @@ before returning a reference to the desired pass.</p> <p> If your pass is capable of updating analyses if they exist (e.g., <tt>BreakCriticalEdges</tt>, as described above), you can use the -<tt>getAnalysisToUpdate</tt> method, which returns a pointer to the analysis if -it is active. For example:</p> +<tt>getAnalysisIfAvailable</tt> method, which returns a pointer to the analysis +if it is active. For example:</p> <div class="doc_code"><pre> ... - if (DominatorSet *DS = getAnalysisToUpdate<DominatorSet>()) { + if (DominatorSet *DS = getAnalysisIfAvailable<DominatorSet>()) { <i>// A DominatorSet is active. This code will update it.</i> } ... |