diff options
author | Owen Anderson <resistor@mac.com> | 2008-06-30 20:28:02 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2008-06-30 20:28:02 +0000 |
commit | c60276982225a6add69e823f1df854a59f1d0dad (patch) | |
tree | 131f6c2021aa257d437e457a211bbc468020f885 /include/llvm/Analysis | |
parent | 117b64b3f8277e8882d711ea859bed380a3e6f14 (diff) | |
download | external_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.h | 4 |
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(); |