summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2008-10-22 23:32:42 +0000
committerDaniel Dunbar <daniel@zuster.org>2008-10-22 23:32:42 +0000
commit7f39e2d85a6104f7581699b5711875f89d5ed37f (patch)
tree4dd664ccaa1dccc3a6e2c90cc2c6e3433094a52a /llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
parent5902794c8c81e271dee7014a2d9d8b6f5a3fee7e (diff)
downloadbcm5719-llvm-7f39e2d85a6104f7581699b5711875f89d5ed37f.tar.gz
bcm5719-llvm-7f39e2d85a6104f7581699b5711875f89d5ed37f.zip
Change create*Pass factory functions to return Pass* instead of
LoopPass*. - Although less precise, this means they can be used in clients without RTTI (who would otherwise need to include LoopPass.h, which eventually includes things using dynamic_cast). This was the simplest solution that presented itself, but I am happy to use a better one if available. llvm-svn: 58010
Diffstat (limited to 'llvm/lib/Transforms/Scalar/IndVarSimplify.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/IndVarSimplify.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
index 13be455c4d0..4dfd8b920b6 100644
--- a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
+++ b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
@@ -102,7 +102,7 @@ char IndVarSimplify::ID = 0;
static RegisterPass<IndVarSimplify>
X("indvars", "Canonicalize Induction Variables");
-LoopPass *llvm::createIndVarSimplifyPass() {
+Pass *llvm::createIndVarSimplifyPass() {
return new IndVarSimplify();
}
OpenPOWER on IntegriCloud