mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-22 19:49:49 +00:00
Constify isReachableFromEntry.
llvm-svn: 115788
This commit is contained in:
parent
0285624d0a
commit
52980b97f9
@ -384,7 +384,7 @@ public:
|
||||
|
||||
/// isReachableFromEntry - Return true if A is dominated by the entry
|
||||
/// block of the function containing it.
|
||||
bool isReachableFromEntry(NodeT* A) {
|
||||
bool isReachableFromEntry(const NodeT* A) {
|
||||
assert(!this->isPostDominator() &&
|
||||
"This is not implemented for post dominators");
|
||||
return dominates(&A->getParent()->front(), A);
|
||||
@ -838,7 +838,7 @@ public:
|
||||
DT->splitBlock(NewBB);
|
||||
}
|
||||
|
||||
bool isReachableFromEntry(BasicBlock* A) {
|
||||
bool isReachableFromEntry(const BasicBlock* A) {
|
||||
return DT->isReachableFromEntry(A);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user