diff options
author | Chris Lattner <sabre@nondot.org> | 2003-11-12 23:11:14 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-11-12 23:11:14 +0000 |
commit | 9a92729581c85891ae86d28281bdec7b5e4a702d (patch) | |
tree | 9ad49e10ea1155327fdb882f920038e67ddea7d9 /lib/Analysis/DataStructure/Printer.cpp | |
parent | bfcadffd4c1f70e22748068f0335f40d307c07f0 (diff) |
Fine-grainify namespaces for this library
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9948 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DataStructure/Printer.cpp')
-rw-r--r-- | lib/Analysis/DataStructure/Printer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Analysis/DataStructure/Printer.cpp b/lib/Analysis/DataStructure/Printer.cpp index d6f6c02cc2..ae528aeb34 100644 --- a/lib/Analysis/DataStructure/Printer.cpp +++ b/lib/Analysis/DataStructure/Printer.cpp @@ -22,8 +22,7 @@ #include "Support/Statistic.h" #include <fstream> #include <sstream> - -namespace llvm { +using namespace llvm; // OnlyPrintMain - The DataStructure printer exposes this option to allow // printing of only the graph for "main". @@ -73,6 +72,7 @@ static std::string getCaption(const DSNode *N, const DSGraph *G) { return OS.str(); } +namespace llvm { template<> struct DOTGraphTraits<const DSGraph*> : public DefaultDOTGraphTraits { static std::string getGraphName(const DSGraph *G) { @@ -179,6 +179,7 @@ struct DOTGraphTraits<const DSGraph*> : public DefaultDOTGraphTraits { } } }; +} // end namespace llvm void DSNode::print(std::ostream &O, const DSGraph *G) const { GraphWriter<const DSGraph *> W(O, G); @@ -282,4 +283,3 @@ void TDDataStructures::print(std::ostream &O, const Module *M) const { printCollection(*this, O, M, "td."); } -} // End llvm namespace |