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 | 81ea3bb55cf9582b2bf6d039a9c819ba15c5d78e (patch) | |
tree | df962486f3d82bb31bf45b2d1f2b2e8d9d9d1d71 /llvm/lib/VMCore/Dominators.cpp | |
parent | a0e071c861d11d1b890e00cfd3d5a2905714f492 (diff) | |
download | bcm5719-llvm-81ea3bb55cf9582b2bf6d039a9c819ba15c5d78e.tar.gz bcm5719-llvm-81ea3bb55cf9582b2bf6d039a9c819ba15c5d78e.zip |
Move dominator info printer into tool/opt/GraphPrinters.cpp
llvm-svn: 52907
Diffstat (limited to 'llvm/lib/VMCore/Dominators.cpp')
-rw-r--r-- | llvm/lib/VMCore/Dominators.cpp | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/llvm/lib/VMCore/Dominators.cpp b/llvm/lib/VMCore/Dominators.cpp index 452b59d2181..6f1de466043 100644 --- a/llvm/lib/VMCore/Dominators.cpp +++ b/llvm/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); |