aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Scalar/LoopRotation.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
commit163555a6eb1c67db45118a5a1122e5eae8c49101 (patch)
treef7a1aac365a10a877007a0c0ab0dfa5af0e3b25a /lib/Transforms/Scalar/LoopRotation.cpp
parentdc5b964a8ff1939b03e5e9726b13115b397a48ed (diff)
downloadexternal_llvm-163555a6eb1c67db45118a5a1122e5eae8c49101.zip
external_llvm-163555a6eb1c67db45118a5a1122e5eae8c49101.tar.gz
external_llvm-163555a6eb1c67db45118a5a1122e5eae8c49101.tar.bz2
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58010 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/LoopRotation.cpp')
-rw-r--r--lib/Transforms/Scalar/LoopRotation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/LoopRotation.cpp b/lib/Transforms/Scalar/LoopRotation.cpp
index 488ab0e..e8df49b 100644
--- a/lib/Transforms/Scalar/LoopRotation.cpp
+++ b/lib/Transforms/Scalar/LoopRotation.cpp
@@ -107,7 +107,7 @@ namespace {
char LoopRotate::ID = 0;
static RegisterPass<LoopRotate> X("loop-rotate", "Rotate Loops");
-LoopPass *llvm::createLoopRotatePass() { return new LoopRotate(); }
+Pass *llvm::createLoopRotatePass() { return new LoopRotate(); }
/// Rotate Loop L as many times as possible. Return true if
/// loop is rotated at least once.