diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2012-08-10 14:05:55 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2012-08-10 14:05:55 +0000 |
commit | 25ac7518ffda5f4256e8333dde4801270bb26418 (patch) | |
tree | 2b949bbe1f12ab579d3f29c34141ad73b367260d | |
parent | c103ede50b9a365aff93878508dee6b0e6c1cb94 (diff) | |
download | external_llvm-25ac7518ffda5f4256e8333dde4801270bb26418.zip external_llvm-25ac7518ffda5f4256e8333dde4801270bb26418.tar.gz external_llvm-25ac7518ffda5f4256e8333dde4801270bb26418.tar.bz2 |
Move BasicBlockEdge to the cpp file. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161663 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Analysis/Dominators.h | 14 | ||||
-rw-r--r-- | lib/VMCore/Dominators.cpp | 16 |
2 files changed, 17 insertions, 13 deletions
diff --git a/include/llvm/Analysis/Dominators.h b/include/llvm/Analysis/Dominators.h index 25fb363..1289edd 100644 --- a/include/llvm/Analysis/Dominators.h +++ b/include/llvm/Analysis/Dominators.h @@ -705,19 +705,7 @@ DominatorTreeBase<NodeT>::properlyDominates(const NodeT *A, const NodeT *B) { EXTERN_TEMPLATE_INSTANTIATION(class DominatorTreeBase<BasicBlock>); -class BasicBlockEdge { - const BasicBlock *Start; - const BasicBlock *End; -public: - BasicBlockEdge(const BasicBlock *Start_, const BasicBlock *End_) : - Start(Start_), End(End_) { } - const BasicBlock *getStart() const { - return Start; - } - const BasicBlock *getEnd() const { - return End; - } -}; +class BasicBlockEdge; //===------------------------------------- /// DominatorTree Class - Concrete subclass of DominatorTreeBase that is used to diff --git a/lib/VMCore/Dominators.cpp b/lib/VMCore/Dominators.cpp index dcf0b43..682d928 100644 --- a/lib/VMCore/Dominators.cpp +++ b/lib/VMCore/Dominators.cpp @@ -39,6 +39,22 @@ static cl::opt<bool,true> VerifyDomInfoX("verify-dom-info", cl::location(VerifyDomInfo), cl::desc("Verify dominator info (time consuming)")); +namespace llvm { + class BasicBlockEdge { + const BasicBlock *Start; + const BasicBlock *End; + public: + BasicBlockEdge(const BasicBlock *Start_, const BasicBlock *End_) : + Start(Start_), End(End_) { } + const BasicBlock *getStart() const { + return Start; + } + const BasicBlock *getEnd() const { + return End; + } + }; +} + //===----------------------------------------------------------------------===// // DominatorTree Implementation //===----------------------------------------------------------------------===// |