summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2008-06-30 20:28:02 +0000
committerOwen Anderson <resistor@mac.com>2008-06-30 20:28:02 +0000
commit60a1c3b1e5e985dbe57723fe5202c9fcf042453d (patch)
treec743507b27847671eaa39944e2bd458188cd9901
parent328e26d0aca59769d0c8cfb3f2e51fe25eac190e (diff)
downloadbcm5719-llvm-60a1c3b1e5e985dbe57723fe5202c9fcf042453d.tar.gz
bcm5719-llvm-60a1c3b1e5e985dbe57723fe5202c9fcf042453d.zip
Add an isReachableFromEntry method.
llvm-svn: 52916
-rw-r--r--llvm/include/llvm/Analysis/Dominators.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/include/llvm/Analysis/Dominators.h b/llvm/include/llvm/Analysis/Dominators.h
index 52171d7e12c..eb3c3e3c6be 100644
--- a/llvm/include/llvm/Analysis/Dominators.h
+++ b/llvm/include/llvm/Analysis/Dominators.h
@@ -792,6 +792,10 @@ public:
DT->splitBlock(NewBB);
}
+ bool isReachableFromEntry(BasicBlock* A) {
+ return DT->isReachableFromEntry(A);
+ }
+
virtual void releaseMemory() {
DT->releaseMemory();
OpenPOWER on IntegriCloud