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 | b583e42265a1aa9bdae96f895e5a80c660a61de4 (patch) | |
tree | 14398340ff928b632da5e678f25301285d5daaf8 | |
parent | 2af50d981d605c007ef45f6a6117e17134bed9df (diff) | |
download | external_llvm-b583e42265a1aa9bdae96f895e5a80c660a61de4.zip external_llvm-b583e42265a1aa9bdae96f895e5a80c660a61de4.tar.gz external_llvm-b583e42265a1aa9bdae96f895e5a80c660a61de4.tar.bz2 |
Revert r146041 et al. The FunctionPass doesn't take an address but the ID.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146268 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | docs/WritingAnLLVMPass.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/WritingAnLLVMPass.html b/docs/WritingAnLLVMPass.html index 831e94c..66b98b6 100644 --- a/docs/WritingAnLLVMPass.html +++ b/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>"; |