diff options
Diffstat (limited to 'lib/VMCore/Dominators.cpp')
-rw-r--r-- | lib/VMCore/Dominators.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/VMCore/Dominators.cpp b/lib/VMCore/Dominators.cpp index cad6685..dbdb409 100644 --- a/lib/VMCore/Dominators.cpp +++ b/lib/VMCore/Dominators.cpp @@ -19,8 +19,7 @@ #include "llvm/Assembly/Writer.h" #include "Support/DepthFirstIterator.h" #include "Support/SetOperations.h" - -namespace llvm { +using namespace llvm; //===----------------------------------------------------------------------===// // DominatorSet Implementation @@ -120,7 +119,7 @@ void DominatorSet::recalculate() { for (Function::iterator I = F->begin(), E = F->end(); I != E; ++I) Doms[I]; } - +namespace llvm { static std::ostream &operator<<(std::ostream &o, const std::set<BasicBlock*> &BBs) { for (std::set<BasicBlock*>::const_iterator I = BBs.begin(), E = BBs.end(); @@ -131,6 +130,7 @@ static std::ostream &operator<<(std::ostream &o, o << " <<exit node>>"; return o; } +} void DominatorSetBase::print(std::ostream &o) const { for (const_iterator I = begin(), E = end(); I != E; ++I) { @@ -361,4 +361,3 @@ void DominanceFrontierBase::print(std::ostream &o) const { } } -} // End llvm namespace |