From 6da4d820fac32f6d30222196030e0ceeef24be5a Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Thu, 7 Oct 2010 00:31:16 +0000 Subject: 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 --- llvm/lib/Transforms/Hello/Hello.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'llvm/lib/Transforms') 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 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 +Y("hello2", "Hello World Pass (with getAnalysisUsage implemented)"); -- cgit v1.2.3