mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-15 00:38:42 +00:00
Constify isReachableFromEntry.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115788 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f61576acf9
commit
14e8190f43
@ -384,7 +384,7 @@ public:
|
|||||||
|
|
||||||
/// isReachableFromEntry - Return true if A is dominated by the entry
|
/// isReachableFromEntry - Return true if A is dominated by the entry
|
||||||
/// block of the function containing it.
|
/// block of the function containing it.
|
||||||
bool isReachableFromEntry(NodeT* A) {
|
bool isReachableFromEntry(const NodeT* A) {
|
||||||
assert(!this->isPostDominator() &&
|
assert(!this->isPostDominator() &&
|
||||||
"This is not implemented for post dominators");
|
"This is not implemented for post dominators");
|
||||||
return dominates(&A->getParent()->front(), A);
|
return dominates(&A->getParent()->front(), A);
|
||||||
@ -838,7 +838,7 @@ public:
|
|||||||
DT->splitBlock(NewBB);
|
DT->splitBlock(NewBB);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool isReachableFromEntry(BasicBlock* A) {
|
bool isReachableFromEntry(const BasicBlock* A) {
|
||||||
return DT->isReachableFromEntry(A);
|
return DT->isReachableFromEntry(A);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user