From b583e42265a1aa9bdae96f895e5a80c660a61de4 Mon Sep 17 00:00:00 2001
From: Bill Wendling
Date: Fri, 9 Dec 2011 19:11:02 +0000
Subject: 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
---
docs/WritingAnLLVMPass.html | 4 ++--
1 file 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.
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: ";
--
cgit v1.1