Add dump() to DominanceFrontier

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108512 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Tobias Grosser 2010-07-16 05:59:39 +00:00
parent 04c528a0c8
commit 9a7b37b8a3
2 changed files with 8 additions and 0 deletions

View File

@ -995,6 +995,9 @@ public:
/// print - Convert to human readable form /// print - Convert to human readable form
/// ///
virtual void print(raw_ostream &OS, const Module* = 0) const; virtual void print(raw_ostream &OS, const Module* = 0) const;
/// dump - Dump the dominance frontier to dbgs().
void dump() const;
}; };

View File

@ -17,6 +17,7 @@
#include "llvm/Analysis/Dominators.h" #include "llvm/Analysis/Dominators.h"
#include "llvm/Support/CFG.h" #include "llvm/Support/CFG.h"
#include "llvm/Support/Compiler.h" #include "llvm/Support/Compiler.h"
#include "llvm/Support/Debug.h"
#include "llvm/ADT/DepthFirstIterator.h" #include "llvm/ADT/DepthFirstIterator.h"
#include "llvm/ADT/SetOperations.h" #include "llvm/ADT/SetOperations.h"
#include "llvm/ADT/SmallPtrSet.h" #include "llvm/ADT/SmallPtrSet.h"
@ -343,3 +344,7 @@ void DominanceFrontierBase::print(raw_ostream &OS, const Module* ) const {
} }
} }
void DominanceFrontierBase::dump() const {
print(dbgs());
}