summaryrefslogtreecommitdiffstats
path: root/llvm/docs
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
commit38a9631d5f04fe6b20909cfc2295f3dcc85cc873 (patch)
tree33f284eae4e98de734f1c3187847f8c4f3d92dcd /llvm/docs
parent5805c98526ab0c0f5f1233c6ae95c79c77217fd5 (diff)
downloadbcm5719-llvm-38a9631d5f04fe6b20909cfc2295f3dcc85cc873.tar.gz
bcm5719-llvm-38a9631d5f04fe6b20909cfc2295f3dcc85cc873.zip
Eliminate several more unnecessary intptr_t casts.
llvm-svn: 64888
Diffstat (limited to 'llvm/docs')
-rw-r--r--llvm/docs/WritingAnLLVMPass.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/docs/WritingAnLLVMPass.html b/llvm/docs/WritingAnLLVMPass.html
index 04bd9266118..9eb97e1d66f 100644
--- a/llvm/docs/WritingAnLLVMPass.html
+++ b/llvm/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";
OpenPOWER on IntegriCloud