From 163555a6eb1c67db45118a5a1122e5eae8c49101 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Wed, 22 Oct 2008 23:32:42 +0000 Subject: 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 --- lib/Transforms/Scalar/LoopUnswitch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Transforms/Scalar/LoopUnswitch.cpp') diff --git a/lib/Transforms/Scalar/LoopUnswitch.cpp b/lib/Transforms/Scalar/LoopUnswitch.cpp index 455338b..65034f5 100644 --- a/lib/Transforms/Scalar/LoopUnswitch.cpp +++ b/lib/Transforms/Scalar/LoopUnswitch.cpp @@ -154,7 +154,7 @@ namespace { char LoopUnswitch::ID = 0; static RegisterPass X("loop-unswitch", "Unswitch loops"); -LoopPass *llvm::createLoopUnswitchPass(bool Os) { +Pass *llvm::createLoopUnswitchPass(bool Os) { return new LoopUnswitch(Os); } -- cgit v1.1