mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-12 18:33:22 +00:00
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
This commit is contained in:
parent
c103ede50b
commit
25ac7518ff
@ -705,19 +705,7 @@ DominatorTreeBase<NodeT>::properlyDominates(const NodeT *A, const NodeT *B) {
|
|||||||
|
|
||||||
EXTERN_TEMPLATE_INSTANTIATION(class DominatorTreeBase<BasicBlock>);
|
EXTERN_TEMPLATE_INSTANTIATION(class DominatorTreeBase<BasicBlock>);
|
||||||
|
|
||||||
class BasicBlockEdge {
|
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 Class - Concrete subclass of DominatorTreeBase that is used to
|
/// DominatorTree Class - Concrete subclass of DominatorTreeBase that is used to
|
||||||
|
@ -39,6 +39,22 @@ static cl::opt<bool,true>
|
|||||||
VerifyDomInfoX("verify-dom-info", cl::location(VerifyDomInfo),
|
VerifyDomInfoX("verify-dom-info", cl::location(VerifyDomInfo),
|
||||||
cl::desc("Verify dominator info (time consuming)"));
|
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
|
// DominatorTree Implementation
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user