summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2011-12-09 19:11:02 +0000
committerBill Wendling <isanbard@gmail.com>2011-12-09 19:11:02 +0000
commitb583e42265a1aa9bdae96f895e5a80c660a61de4 (patch)
tree14398340ff928b632da5e678f25301285d5daaf8 /docs
parent2af50d981d605c007ef45f6a6117e17134bed9df (diff)
downloadllvm-b583e42265a1aa9bdae96f895e5a80c660a61de4.tar.gz
llvm-b583e42265a1aa9bdae96f895e5a80c660a61de4.tar.bz2
llvm-b583e42265a1aa9bdae96f895e5a80c660a61de4.tar.xz
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
Diffstat (limited to 'docs')
-rw-r--r--docs/WritingAnLLVMPass.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/WritingAnLLVMPass.html b/docs/WritingAnLLVMPass.html
index 831e94cd5f..66b98b681a 100644
--- a/docs/WritingAnLLVMPass.html
+++ b/docs/WritingAnLLVMPass.html
@@ -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>";