summaryrefslogtreecommitdiff
path: root/include/llvm/Analysis/PostDominators.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-02-27 18:38:29 +0000
committerDan Gohman <gohman@apple.com>2008-02-27 18:38:29 +0000
commite8ae2fe2a8cc767f4d7ac55db13bf9adb8e7df70 (patch)
tree4ed2a40b18efb359a45cb5873c387f2978cdb066 /include/llvm/Analysis/PostDominators.h
parente416b7d407ed34ed7cf0c556d0fde536e2c329b1 (diff)
downloadllvm-e8ae2fe2a8cc767f4d7ac55db13bf9adb8e7df70.tar.gz
llvm-e8ae2fe2a8cc767f4d7ac55db13bf9adb8e7df70.tar.bz2
llvm-e8ae2fe2a8cc767f4d7ac55db13bf9adb8e7df70.tar.xz
Add -analyze support to postdomtree.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47680 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/PostDominators.h')
-rw-r--r--include/llvm/Analysis/PostDominators.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Analysis/PostDominators.h b/include/llvm/Analysis/PostDominators.h
index 77ce4cddd2..07910e9538 100644
--- a/include/llvm/Analysis/PostDominators.h
+++ b/include/llvm/Analysis/PostDominators.h
@@ -54,6 +54,10 @@ struct PostDominatorTree : public FunctionPass {
inline bool properlyDominates(BasicBlock* A, BasicBlock* B) const {
return DT->properlyDominates(A, B);
}
+
+ virtual void print(std::ostream &OS, const Module* M= 0) const {
+ DT->print(OS, M);
+ }
};