diff options
author | Devang Patel <dpatel@apple.com> | 2008-06-30 17:32:58 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2008-06-30 17:32:58 +0000 |
commit | 687e03b2fa6b08fcd59c4f2f0c4aababdd91a71a (patch) | |
tree | 76ff6aedea33c78182456b9c908f4d4b45db052f /lib/VMCore/Dominators.cpp | |
parent | 6f7e1cddf63f91af84996d59cdb5809088ac3fe3 (diff) |
Move dominator info printer into tool/opt/GraphPrinters.cpp
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52907 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Dominators.cpp')
-rw-r--r-- | lib/VMCore/Dominators.cpp | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/lib/VMCore/Dominators.cpp b/lib/VMCore/Dominators.cpp index 452b59d218..6f1de46604 100644 --- a/lib/VMCore/Dominators.cpp +++ b/lib/VMCore/Dominators.cpp @@ -287,33 +287,3 @@ void DominanceFrontierBase::dump() { print (llvm::cerr); } -//===----------------------------------------------------------------------===// -// DomInfoPrinter Pass -//===----------------------------------------------------------------------===// - -namespace { - class VISIBILITY_HIDDEN DomInfoPrinter : public FunctionPass { - public: - static char ID; // Pass identification, replacement for typeid - DomInfoPrinter() : FunctionPass((intptr_t)&ID) {} - - virtual void getAnalysisUsage(AnalysisUsage &AU) const { - AU.setPreservesAll(); - AU.addRequired<DominatorTree>(); - AU.addRequired<DominanceFrontier>(); - - } - - virtual bool runOnFunction(Function &F) { - DominatorTree &DT = getAnalysis<DominatorTree>(); - DT.dump(); - DominanceFrontier &DF = getAnalysis<DominanceFrontier>(); - DF.dump(); - return false; - } - }; -} - -char DomInfoPrinter::ID = 0; -static RegisterPass<DomInfoPrinter> -DIP("print-dom-info", "Dominator Info Printer", true, true); |