diff options
author | Devang Patel <dpatel@apple.com> | 2007-05-23 19:55:36 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2007-05-23 19:55:36 +0000 |
commit | 79b48b8bc07170656e7e2d7500f7fcbf69ccc923 (patch) | |
tree | 989b039affae4fd0e24a9927beae9397e32c5201 /lib/VMCore | |
parent | 070280e97f801ae809ddcc7930c153929f253997 (diff) | |
download | external_llvm-79b48b8bc07170656e7e2d7500f7fcbf69ccc923.zip external_llvm-79b48b8bc07170656e7e2d7500f7fcbf69ccc923.tar.gz external_llvm-79b48b8bc07170656e7e2d7500f7fcbf69ccc923.tar.bz2 |
Add dump() routines for debugging assistance.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37314 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/Dominators.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/VMCore/Dominators.cpp b/lib/VMCore/Dominators.cpp index 4c674c2..32e40f0 100644 --- a/lib/VMCore/Dominators.cpp +++ b/lib/VMCore/Dominators.cpp @@ -21,6 +21,7 @@ #include "llvm/ADT/SetOperations.h" #include "llvm/ADT/SmallPtrSet.h" #include "llvm/Instructions.h" +#include "llvm/Support/Streams.h" #include <algorithm> using namespace llvm; @@ -363,6 +364,10 @@ void DominatorTreeBase::print(std::ostream &o, const Module* ) const { PrintDomTree(getRootNode(), o, 1); } +void DominatorTreeBase::dump() { + print (llvm::cerr); +} + bool DominatorTree::runOnFunction(Function &F) { reset(); // Reset from the last time we were run... Roots.push_back(&F.getEntryBlock()); @@ -476,6 +481,11 @@ void DominanceFrontierBase::print(std::ostream &o, const Module* ) const { } } +void DominanceFrontierBase::dump() { + print (llvm::cerr); +} + + //===----------------------------------------------------------------------===// // ETOccurrence Implementation //===----------------------------------------------------------------------===// @@ -1019,3 +1029,7 @@ void ETForestBase::print(std::ostream &o, const Module *) const { } o << "\n"; } + +void ETForestBase::dump() { + print (llvm::cerr); +} |