summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Hello/Hello.cpp
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
commitc2d3d3112e981b142ffdb742622b52bc165a3df9 (patch)
tree01726132d406eb377d56c0590770db01784bef36 /llvm/lib/Transforms/Hello/Hello.cpp
parentc7cff24f40b22bf010d33a92c08c707a419a6b98 (diff)
downloadbcm5719-llvm-c2d3d3112e981b142ffdb742622b52bc165a3df9.tar.gz
bcm5719-llvm-c2d3d3112e981b142ffdb742622b52bc165a3df9.zip
eliminate RegisterOpt. It does the same thing as RegisterPass.
llvm-svn: 29925
Diffstat (limited to 'llvm/lib/Transforms/Hello/Hello.cpp')
-rw-r--r--llvm/lib/Transforms/Hello/Hello.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Hello/Hello.cpp b/llvm/lib/Transforms/Hello/Hello.cpp
index 804c3a70b2d..cfa879a32db 100644
--- a/llvm/lib/Transforms/Hello/Hello.cpp
+++ b/llvm/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)");
}
OpenPOWER on IntegriCloud