diff options
Diffstat (limited to 'include/clang/Analysis/Analyses/Dominators.h')
-rw-r--r-- | include/clang/Analysis/Analyses/Dominators.h | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/include/clang/Analysis/Analyses/Dominators.h b/include/clang/Analysis/Analyses/Dominators.h index 2a806c8befda..6c6d9238e5a9 100644 --- a/include/clang/Analysis/Analyses/Dominators.h +++ b/include/clang/Analysis/Analyses/Dominators.h @@ -17,9 +17,15 @@ #include "clang/Analysis/AnalysisContext.h" #include "clang/Analysis/CFG.h" #include "llvm/ADT/GraphTraits.h" -#include "llvm/Analysis/DominatorInternals.h" -#include "llvm/Analysis/Dominators.h" -#include "llvm/IR/Module.h" +#include "llvm/Support/GenericDomTree.h" +#include "llvm/Support/GenericDomTreeConstruction.h" + +// FIXME: There is no good reason for the domtree to require a print method +// which accepts an LLVM Module, so remove this (and the method's argument that +// needs it) when that is fixed. +namespace llvm { +class Module; +} namespace clang { @@ -147,7 +153,7 @@ public: /// \brief This method converts the dominator tree to human readable form. /// - virtual void print(raw_ostream &OS, const llvm::Module* M= 0) const { + virtual void print(raw_ostream &OS, const llvm::Module* M= nullptr) const { DT->print(OS); } @@ -155,11 +161,6 @@ private: CFG *cfg; }; -inline void WriteAsOperand(raw_ostream &OS, const CFGBlock *BB, - bool t) { - OS << "BB#" << BB->getBlockID(); -} - } // end namespace clang //===------------------------------------- |