[llvm-commits] [llvm] r115881 - /llvm/trunk/lib/Transforms/Hello/Hello.cpp

Owen Anderson resistor at mac.com
Wed Oct 6 17:31:16 PDT 2010


Author: resistor
Date: Wed Oct  6 19:31:16 2010
New Revision: 115881

URL: http://llvm.org/viewvc/llvm-project?rev=115881&view=rev
Log:
Since the Hello pass is built as a loadable dynamic library, don't try to convert it to new-style registration yet.

Modified:
    llvm/trunk/lib/Transforms/Hello/Hello.cpp

Modified: llvm/trunk/lib/Transforms/Hello/Hello.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Hello/Hello.cpp?rev=115881&r1=115880&r2=115881&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Hello/Hello.cpp (original)
+++ llvm/trunk/lib/Transforms/Hello/Hello.cpp Wed Oct  6 19:31:16 2010
@@ -37,7 +37,7 @@
 }
 
 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 @@
 }
 
 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)");





More information about the llvm-commits mailing list