From 52980b97f9b504a0b221e6b7cc5996806606bc5b Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Wed, 6 Oct 2010 15:49:14 +0000 Subject: [PATCH] Constify isReachableFromEntry. llvm-svn: 115788 --- include/llvm/Analysis/Dominators.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/llvm/Analysis/Dominators.h b/include/llvm/Analysis/Dominators.h index 1de8e15ff3f..4eb3933b435 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); }