From 687e03b2fa6b08fcd59c4f2f0c4aababdd91a71a Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Mon, 30 Jun 2008 17:32:58 +0000 Subject: 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 --- lib/VMCore/Dominators.cpp | 30 ------------------------------ 1 file changed, 30 deletions(-) (limited to 'lib/VMCore/Dominators.cpp') 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(); - AU.addRequired(); - - } - - virtual bool runOnFunction(Function &F) { - DominatorTree &DT = getAnalysis(); - DT.dump(); - DominanceFrontier &DF = getAnalysis(); - DF.dump(); - return false; - } - }; -} - -char DomInfoPrinter::ID = 0; -static RegisterPass -DIP("print-dom-info", "Dominator Info Printer", true, true); -- cgit v1.2.3-18-g5258