diff options
| author | Bill Wendling <isanbard@gmail.com> | 2011-12-09 19:11:02 +0000 |
|---|---|---|
| committer | Bill Wendling <isanbard@gmail.com> | 2011-12-09 19:11:02 +0000 |
| commit | abe534c6cc6024d74b3e5e4db4699813f0b8827e (patch) | |
| tree | bf6c5709b7883fd51e74783774fa77ec7c9db049 | |
| parent | 8a4009dab2eea5364ae196be027276650712ff4f (diff) | |
| download | bcm5719-llvm-abe534c6cc6024d74b3e5e4db4699813f0b8827e.tar.gz bcm5719-llvm-abe534c6cc6024d74b3e5e4db4699813f0b8827e.zip | |
Revert r146041 et al. The FunctionPass doesn't take an address but the ID.
llvm-svn: 146268
| -rw-r--r-- | llvm/docs/WritingAnLLVMPass.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/docs/WritingAnLLVMPass.html b/llvm/docs/WritingAnLLVMPass.html index 831e94cd5fe..66b98b681ab 100644 --- a/llvm/docs/WritingAnLLVMPass.html +++ b/llvm/docs/WritingAnLLVMPass.html @@ -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>"; |

