aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Analysis/PostDominatorCalculation.h
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2007-09-28 01:23:47 +0000
committerOwen Anderson <resistor@mac.com>2007-09-28 01:23:47 +0000
commitdbba0025eac5f366e2131c407905115deebda217 (patch)
tree32f69488418f4ef596697887c2d65c825e15bdb0 /lib/Analysis/PostDominatorCalculation.h
parent037364a39b74789cb84f9f721f2a7f69be46df92 (diff)
downloadexternal_llvm-dbba0025eac5f366e2131c407905115deebda217.zip
external_llvm-dbba0025eac5f366e2131c407905115deebda217.tar.gz
external_llvm-dbba0025eac5f366e2131c407905115deebda217.tar.bz2
Have PostDomTree use the newly templated DFSPass.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42427 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/PostDominatorCalculation.h')
-rw-r--r--lib/Analysis/PostDominatorCalculation.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Analysis/PostDominatorCalculation.h b/lib/Analysis/PostDominatorCalculation.h
index 550422d..5e2b3c8 100644
--- a/lib/Analysis/PostDominatorCalculation.h
+++ b/lib/Analysis/PostDominatorCalculation.h
@@ -13,7 +13,9 @@
#ifndef LLVM_ANALYSIS_POST_DOMINATOR_CALCULATION_H
#define LLVM_ANALYSIS_POST_DOMINATOR_CALCULATION_H
+#include "llvm/Analysis/Dominators.h"
#include "llvm/Analysis/PostDominators.h"
+#include "llvm/Analysis/DominatorInternals.h"
namespace llvm {
@@ -40,7 +42,7 @@ void PDTcalculate(PostDominatorTree& PDT, Function &F) {
// in later stages of the algorithm.
unsigned N = 0;
for (unsigned i = 0, e = PDT.Roots.size(); i != e; ++i)
- N = PDT.DFSPass(PDT.Roots[i], N);
+ N = DFSPass<GraphTraits<Inverse<BasicBlock*> > >(PDT, PDT.Roots[i], N);
for (unsigned i = N; i >= 2; --i) {
BasicBlock *W = PDT.Vertex[i];