summaryrefslogtreecommitdiff
path: root/lib/Transforms/Hello
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-08-27 22:42:52 +0000
committerChris Lattner <sabre@nondot.org>2006-08-27 22:42:52 +0000
commit7f8897f22e88271cfa114998a4d6088e7c8e8e11 (patch)
treebf5610a6be6233216bdaa701a92527bc23b86cff /lib/Transforms/Hello
parent21a82e6fc718b4a2cc0281a4a43477ba940d3586 (diff)
downloadllvm-7f8897f22e88271cfa114998a4d6088e7c8e8e11.tar.gz
llvm-7f8897f22e88271cfa114998a4d6088e7c8e8e11.tar.bz2
llvm-7f8897f22e88271cfa114998a4d6088e7c8e8e11.tar.xz
eliminate RegisterOpt. It does the same thing as RegisterPass.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29925 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Hello')
-rw-r--r--lib/Transforms/Hello/Hello.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Transforms/Hello/Hello.cpp b/lib/Transforms/Hello/Hello.cpp
index 804c3a70b2..cfa879a32d 100644
--- a/lib/Transforms/Hello/Hello.cpp
+++ b/lib/Transforms/Hello/Hello.cpp
@@ -34,7 +34,7 @@ namespace {
return false;
}
};
- RegisterOpt<Hello> X("hello", "Hello World Pass");
+ RegisterPass<Hello> X("hello", "Hello World Pass");
// Hello2 - The second implementation with getAnalysisUsage implemented.
struct Hello2 : public FunctionPass {
@@ -52,5 +52,6 @@ namespace {
AU.setPreservesAll();
};
};
- RegisterOpt<Hello2> Y("hello2", "Hello World Pass (with getAnalysisUsage implemented)");
+ RegisterPass<Hello2> Y("hello2",
+ "Hello World Pass (with getAnalysisUsage implemented)");
}