forked from OSchip/llvm-project
parent
5538349a7c
commit
6d84cdcfee
|
@ -312,7 +312,7 @@ argument "<tt>hello</tt>", and a name "<tt>Hello World Pass</tt>".</p>
|
|||
<b>struct Hello</b> : <b>public</b> <a href="#FunctionPass">FunctionPass</a> {
|
||||
|
||||
static char ID;
|
||||
Hello() : FunctionPass((intptr_t)&ID) {}
|
||||
Hello() : FunctionPass((intptr_t)&ID) {}
|
||||
|
||||
<b>virtual bool</b> <a href="#runOnFunction">runOnFunction</a>(Function &F) {
|
||||
llvm::cerr << "<i>Hello: </i>" << F.getName() << "\n";
|
||||
|
|
Loading…
Reference in New Issue