forked from OSchip/llvm-project
Revert r146041 et al. The FunctionPass doesn't take an address but the ID.
llvm-svn: 146268
This commit is contained in:
parent
8a4009dab2
commit
abe534c6cc
|
@ -284,7 +284,7 @@ time.</p>
|
|||
<div class="doc_code">
|
||||
<pre>
|
||||
static char ID;
|
||||
Hello() : FunctionPass(&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(&ID) {}
|
||||
Hello() : FunctionPass(ID) {}
|
||||
|
||||
<b>virtual bool</b> <a href="#runOnFunction">runOnFunction</a>(Function &F) {
|
||||
errs() << "<i>Hello: </i>";
|
||||
|
|
Loading…
Reference in New Issue