aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Analysis
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
commitc60276982225a6add69e823f1df854a59f1d0dad (patch)
tree131f6c2021aa257d437e457a211bbc468020f885 /include/llvm/Analysis
parent117b64b3f8277e8882d711ea859bed380a3e6f14 (diff)
downloadexternal_llvm-c60276982225a6add69e823f1df854a59f1d0dad.zip
external_llvm-c60276982225a6add69e823f1df854a59f1d0dad.tar.gz
external_llvm-c60276982225a6add69e823f1df854a59f1d0dad.tar.bz2
Add an isReachableFromEntry method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52916 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis')
-rw-r--r--include/llvm/Analysis/Dominators.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Analysis/Dominators.h b/include/llvm/Analysis/Dominators.h
index 52171d7..eb3c3e3 100644
--- a/include/llvm/Analysis/Dominators.h
+++ b/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();