Clarify documentation. A module pass MP can require a function paqss FP only if FP does not require any module pass.

llvm-svn: 58813
This commit is contained in:
Devang Patel 2008-11-06 19:47:49 +00:00
parent af54e4ed18
commit 5d5357aa3b

View File

@ -492,7 +492,8 @@ refering to function bodies in no predictable order, or adding and removing
functions. Because nothing is known about the behavior of <tt>ModulePass</tt>
subclasses, no optimization can be done for their execution. A module pass
can use function level passes (e.g. dominators) using getAnalysis interface
<tt> getAnalysis&lt;DominatorTree&gt;(Function)</tt>. </p>
<tt> getAnalysis&lt;DominatorTree&gt;(Function)</tt>, if the function pass
does not require any module passes. </p>
<p>To write a correct <tt>ModulePass</tt> subclass, derive from
<tt>ModulePass</tt> and overload the <tt>runOnModule</tt> method with the