diff options
author | Andrew Trick <atrick@apple.com> | 2012-06-20 03:42:09 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2012-06-20 03:42:09 +0000 |
commit | cbf24b4e58c2f621f480883c5bb1f2f2b2b8d497 (patch) | |
tree | 1abae2368e5a7f77a3056ee5daac3a6a6fff2060 /lib/Analysis | |
parent | 2c8293d348227e0f064c55d39acca62c46bf4fd4 (diff) | |
download | external_llvm-cbf24b4e58c2f621f480883c5bb1f2f2b2b8d497.zip external_llvm-cbf24b4e58c2f621f480883c5bb1f2f2b2b8d497.tar.gz external_llvm-cbf24b4e58c2f621f480883c5bb1f2f2b2b8d497.tar.bz2 |
Move the implementation of LoopInfo into LoopInfoImpl.h.
The implementation only needs inclusion from LoopInfo.cpp and
MachineLoopInfo.cpp. Clients of the interface should only include the
interface. This makes the interface readable and speeds up rebuilds
after modifying the implementation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158787 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis')
-rw-r--r-- | lib/Analysis/LoopInfo.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Analysis/LoopInfo.cpp b/lib/Analysis/LoopInfo.cpp index f7a60a1..e46be98 100644 --- a/lib/Analysis/LoopInfo.cpp +++ b/lib/Analysis/LoopInfo.cpp @@ -18,6 +18,7 @@ #include "llvm/Constants.h" #include "llvm/Instructions.h" #include "llvm/Analysis/Dominators.h" +#include "llvm/Analysis/LoopInfoImpl.h" #include "llvm/Analysis/LoopIterator.h" #include "llvm/Analysis/ValueTracking.h" #include "llvm/Assembly/Writer.h" @@ -29,6 +30,10 @@ #include <algorithm> using namespace llvm; +// Explicitly instantiate methods in LoopInfoImpl.h for IR-level Loops. +template class llvm::LoopBase<BasicBlock, Loop>; +template class llvm::LoopInfoBase<BasicBlock, Loop>; + // Always verify loopinfo if expensive checking is enabled. #ifdef XDEBUG static bool VerifyLoopInfo = true; |