aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore/DominatorCalculation.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/VMCore/DominatorCalculation.h')
-rw-r--r--lib/VMCore/DominatorCalculation.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/VMCore/DominatorCalculation.h b/lib/VMCore/DominatorCalculation.h
index 0ad4bc0..bf90a97 100644
--- a/lib/VMCore/DominatorCalculation.h
+++ b/lib/VMCore/DominatorCalculation.h
@@ -11,6 +11,7 @@
#define LLVM_VMCORE_DOMINATOR_CALCULATION_H
#include "llvm/Analysis/Dominators.h"
+#include "llvm/Analysis/DominatorInternals.h"
//===----------------------------------------------------------------------===//
//
@@ -32,7 +33,7 @@
//===----------------------------------------------------------------------===//
namespace llvm {
-
+
void DTcalculate(DominatorTree& DT, Function &F) {
BasicBlock* Root = DT.Roots[0];
@@ -43,7 +44,7 @@ void DTcalculate(DominatorTree& DT, Function &F) {
// Step #1: Number blocks in depth-first order and initialize variables used
// in later stages of the algorithm.
- unsigned N = DT.DFSPass(Root, 0);
+ unsigned N = DFSPass<GraphTraits<BasicBlock*> >(DT, Root, 0);
for (unsigned i = N; i >= 2; --i) {
BasicBlock *W = DT.Vertex[i];