aboutsummaryrefslogtreecommitdiff
path: root/docs/WritingAnLLVMPass.html
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-02-18 05:09:16 +0000
committerDan Gohman <gohman@apple.com>2009-02-18 05:09:16 +0000
commit865f006bb45a609e1cb6acb653af3fe5442ee4dc (patch)
tree0071ecd9b57dcc912f9cbfee237f2ed3e1335582 /docs/WritingAnLLVMPass.html
parent38ad0191e9d1a9887ee355afe12d22b38a608f72 (diff)
Eliminate several more unnecessary intptr_t casts.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64888 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/WritingAnLLVMPass.html')
-rw-r--r--docs/WritingAnLLVMPass.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/WritingAnLLVMPass.html b/docs/WritingAnLLVMPass.html
index 04bd926611..9eb97e1d66 100644
--- a/docs/WritingAnLLVMPass.html
+++ b/docs/WritingAnLLVMPass.html
@@ -265,7 +265,7 @@ time.</p>
<div class="doc_code"><pre>
static char ID;
- Hello() : FunctionPass((intptr_t)&amp;ID) {}
+ Hello() : FunctionPass(&amp;ID) {}
</pre></div><p>
<p> This declares pass identifier used by LLVM to identify pass. This allows LLVM to
@@ -319,7 +319,7 @@ is supplied as fourth argument. </p>
<b>struct Hello</b> : <b>public</b> <a href="#FunctionPass">FunctionPass</a> {
static char ID;
- Hello() : FunctionPass((intptr_t)&amp;ID) {}
+ Hello() : FunctionPass(&amp;ID) {}
<b>virtual bool</b> <a href="#runOnFunction">runOnFunction</a>(Function &amp;F) {
llvm::cerr &lt;&lt; "<i>Hello: </i>" &lt;&lt; F.getName() &lt;&lt; "\n";