Skip to content

Commit

Permalink
Revert r146041 et al. The FunctionPass doesn't take an address but th…
Browse files Browse the repository at this point in the history
…e ID.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146268 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
isanbard committed Dec 9, 2011
1 parent 2af50d9 commit b583e42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/WritingAnLLVMPass.html
Expand Up @@ -284,7 +284,7 @@ <h3>
<div class="doc_code">
<pre>
static char ID;
Hello() : FunctionPass(&amp;ID) {}
Hello() : FunctionPass(ID) {}
</pre>
</div>

Expand Down Expand Up @@ -347,7 +347,7 @@ <h3>
<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>";
Expand Down

0 comments on commit b583e42

Please sign in to comment.