aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Transforms/Utils/Cloning.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-07-13 21:51:15 +0000
committerDan Gohman <gohman@apple.com>2009-07-13 21:51:15 +0000
commitc8d76d5afb023a1c6b439941be3b62789fcc0ed3 (patch)
tree0ff6a38e33cf421026ea0232d6c47ed6f27d554d /include/llvm/Transforms/Utils/Cloning.h
parent92aa0bb4cab8dec9df4c51b414b5861953752a32 (diff)
downloadexternal_llvm-c8d76d5afb023a1c6b439941be3b62789fcc0ed3.zip
external_llvm-c8d76d5afb023a1c6b439941be3b62789fcc0ed3.tar.gz
external_llvm-c8d76d5afb023a1c6b439941be3b62789fcc0ed3.tar.bz2
Make Loop and MachineLoop be subclasses of LoopBase, rather than typedefs,
using the Curiously Recurring Template Pattern with LoopBase. This will help further refactoring, and future functionality for Loop. Also, Headers can now foward-declare Loop, instead of pulling in LoopInfo.h or doing tricks. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75519 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Transforms/Utils/Cloning.h')
-rw-r--r--include/llvm/Transforms/Utils/Cloning.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/llvm/Transforms/Utils/Cloning.h b/include/llvm/Transforms/Utils/Cloning.h
index 840d970..66cac9f 100644
--- a/include/llvm/Transforms/Utils/Cloning.h
+++ b/include/llvm/Transforms/Utils/Cloning.h
@@ -36,10 +36,9 @@ class CallSite;
class Trace;
class CallGraph;
class TargetData;
+class Loop;
class LoopInfo;
class LLVMContext;
-template<class N> class LoopBase;
-typedef LoopBase<BasicBlock> Loop;
/// CloneModule - Return an exact copy of the specified module
///