Eliminate several more unnecessary intptr_t casts.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64888 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman
2009-02-18 05:09:16 +00:00
parent 38ad0191e9
commit 865f006bb4
16 changed files with 31 additions and 31 deletions
+2 -2
View File
@@ -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";