From: Bill Wendling Date: Fri, 9 Dec 2011 19:11:02 +0000 (+0000) Subject: Revert r146041 et al. The FunctionPass doesn't take an address but the ID. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=b583e42265a1aa9bdae96f895e5a80c660a61de4;p=oota-llvm.git 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 --- diff --git a/docs/WritingAnLLVMPass.html b/docs/WritingAnLLVMPass.html index 831e94cd5fe..66b98b681ab 100644 --- a/docs/WritingAnLLVMPass.html +++ b/docs/WritingAnLLVMPass.html @@ -284,7 +284,7 @@ time.

     static char ID;
-    Hello() : FunctionPass(&ID) {}
+    Hello() : FunctionPass(ID) {}
 
@@ -347,7 +347,7 @@ supplied as the fourth argument.

struct Hello : public FunctionPass { static char ID; - Hello() : FunctionPass(&ID) {} + Hello() : FunctionPass(ID) {} virtual bool runOnFunction(Function &F) { errs() << "Hello: ";