[llvm-commits] [llvm] r115788 - /llvm/trunk/include/llvm/Analysis/Dominators.h
Dan Gohman
gohman at apple.com
Wed Oct 6 08:49:14 PDT 2010
Author: djg
Date: Wed Oct 6 10:49:14 2010
New Revision: 115788
URL: http://llvm.org/viewvc/llvm-project?rev=115788&view=rev
Log:
Constify isReachableFromEntry.
Modified:
llvm/trunk/include/llvm/Analysis/Dominators.h
Modified: llvm/trunk/include/llvm/Analysis/Dominators.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/Dominators.h?rev=115788&r1=115787&r2=115788&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/Dominators.h (original)
+++ llvm/trunk/include/llvm/Analysis/Dominators.h Wed Oct 6 10:49:14 2010
@@ -384,7 +384,7 @@
/// 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 @@
DT->splitBlock(NewBB);
}
- bool isReachableFromEntry(BasicBlock* A) {
+ bool isReachableFromEntry(const BasicBlock* A) {
return DT->isReachableFromEntry(A);
}
More information about the llvm-commits
mailing list