diff options
author | Owen Anderson <resistor@mac.com> | 2010-10-07 00:31:16 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2010-10-07 00:31:16 +0000 |
commit | 6da4d820fac32f6d30222196030e0ceeef24be5a (patch) | |
tree | 3fe6b2e2c8245de48773a195f1489c64c78b7e4c /llvm/lib/Transforms/Hello/Hello.cpp | |
parent | e17d7212f156f4783b00562acf8608cc055f8789 (diff) | |
download | bcm5719-llvm-6da4d820fac32f6d30222196030e0ceeef24be5a.tar.gz bcm5719-llvm-6da4d820fac32f6d30222196030e0ceeef24be5a.zip |
Since the Hello pass is built as a loadable dynamic library, don't try to convert it to new-style registration yet.
llvm-svn: 115881
Diffstat (limited to 'llvm/lib/Transforms/Hello/Hello.cpp')
-rw-r--r-- | llvm/lib/Transforms/Hello/Hello.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Hello/Hello.cpp b/llvm/lib/Transforms/Hello/Hello.cpp index 838d5505490..b0e22de8d7e 100644 --- a/llvm/lib/Transforms/Hello/Hello.cpp +++ b/llvm/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)"); |