summaryrefslogtreecommitdiff
path: root/lib/Transforms/Scalar/LoopDeletion.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
commit394f0441e06dafca29f0752cf400990a5b8fe4b1 (patch)
treef7a1aac365a10a877007a0c0ab0dfa5af0e3b25a /lib/Transforms/Scalar/LoopDeletion.cpp
parent30f100e14056c2fd88a3448c8bf89b656e7d8584 (diff)
downloadllvm-394f0441e06dafca29f0752cf400990a5b8fe4b1.tar.gz
llvm-394f0441e06dafca29f0752cf400990a5b8fe4b1.tar.bz2
llvm-394f0441e06dafca29f0752cf400990a5b8fe4b1.tar.xz
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/LoopDeletion.cpp')
-rw-r--r--lib/Transforms/Scalar/LoopDeletion.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/LoopDeletion.cpp b/lib/Transforms/Scalar/LoopDeletion.cpp
index 74190f5f77..86edcfaac8 100644
--- a/lib/Transforms/Scalar/LoopDeletion.cpp
+++ b/lib/Transforms/Scalar/LoopDeletion.cpp
@@ -60,7 +60,7 @@ namespace {
char LoopDeletion::ID = 0;
static RegisterPass<LoopDeletion> X("loop-deletion", "Delete dead loops");
-LoopPass* llvm::createLoopDeletionPass() {
+Pass* llvm::createLoopDeletionPass() {
return new LoopDeletion();
}