Revert r146041 et al. The FunctionPass doesn't take an address but the ID.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146268 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Bill Wendling 2011-12-09 19:11:02 +00:00
parent 2af50d981d
commit b583e42265

View File

@ -284,7 +284,7 @@ time.</p>
<div class="doc_code">
<pre>
static char ID;
Hello() : FunctionPass(&amp;ID) {}
Hello() : FunctionPass(ID) {}
</pre>
</div>
@ -347,7 +347,7 @@ supplied as the fourth argument.</p>
<b>struct Hello</b> : <b>public</b> <a href="#FunctionPass">FunctionPass</a> {
static char ID;
Hello() : FunctionPass(&amp;ID) {}
Hello() : FunctionPass(ID) {}
<b>virtual bool</b> <a href="#runOnFunction">runOnFunction</a>(Function &amp;F) {
errs() &lt;&lt; "<i>Hello: </i>";