Since the Hello pass is built as a loadable dynamic library, don't try to convert...
authorOwen Anderson <resistor@mac.com>
Thu, 7 Oct 2010 00:31:16 +0000 (00:31 +0000)
committerOwen Anderson <resistor@mac.com>
Thu, 7 Oct 2010 00:31:16 +0000 (00:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115881 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Hello/Hello.cpp

index 838d5505490f5841dc2fd1b09cb0ea09d13ab861..b0e22de8d7ed648af5b270627542b5a1ccc63798 100644 (file)
@@ -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)");