summaryrefslogtreecommitdiff
path: root/lib/Transforms/Hello
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Transforms/Hello')
-rw-r--r--lib/Transforms/Hello/Hello.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/Transforms/Hello/Hello.cpp b/lib/Transforms/Hello/Hello.cpp
index 838d550549..b0e22de8d7 100644
--- a/lib/Transforms/Hello/Hello.cpp
+++ b/lib/Transforms/Hello/Hello.cpp
@@ -37,7 +37,7 @@ namespace {
}
char Hello::ID = 0;
-INITIALIZE_PASS(Hello, "hello", "Hello World Pass", false, false);
+static RegisterPass<Hello> X("hello", "Hello World Pass");
namespace {
// Hello2 - The second implementation with getAnalysisUsage implemented.
@@ -60,6 +60,5 @@ namespace {
}
char Hello2::ID = 0;
-INITIALIZE_PASS(Hello2, "hello2",
- "Hello World Pass (with getAnalysisUsage implemented)",
- false, false);
+static RegisterPass<Hello2>
+Y("hello2", "Hello World Pass (with getAnalysisUsage implemented)");