mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 05:22:04 +00:00
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:
@@ -265,7 +265,7 @@ time.</p>
|
||||
|
||||
<div class="doc_code"><pre>
|
||||
static char ID;
|
||||
Hello() : FunctionPass((intptr_t)&ID) {}
|
||||
Hello() : FunctionPass(&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)&ID) {}
|
||||
Hello() : FunctionPass(&ID) {}
|
||||
|
||||
<b>virtual bool</b> <a href="#runOnFunction">runOnFunction</a>(Function &F) {
|
||||
llvm::cerr << "<i>Hello: </i>" << F.getName() << "\n";
|
||||
|
||||
Reference in New Issue
Block a user