diff options
author | Dan Gohman <gohman@apple.com> | 2010-10-06 15:49:14 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-10-06 15:49:14 +0000 |
commit | 14e8190f4329bc0ea4d8813da7486d3e05affc7c (patch) | |
tree | 079e2fd76587a5bc026a6030676a045f88a8bb74 /include/llvm/Analysis/Dominators.h | |
parent | f61576acf99cf1e498d2670e37c1599ed31a37c5 (diff) |
Constify isReachableFromEntry.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115788 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/Dominators.h')
-rw-r--r-- | include/llvm/Analysis/Dominators.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Analysis/Dominators.h b/include/llvm/Analysis/Dominators.h index 1de8e15ff3..4eb3933b43 100644 --- a/include/llvm/Analysis/Dominators.h +++ b/include/llvm/Analysis/Dominators.h @@ -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); } |