diff options
author | Chris Lattner <sabre@nondot.org> | 2003-02-01 04:01:21 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-02-01 04:01:21 +0000 |
commit | b3416bc9ccd9d7f379d14238bae297a9613999cf (patch) | |
tree | be8a579e2a3e7c724bdcc7935256ff69a478a5a9 /lib/Analysis/DataStructure/Printer.cpp | |
parent | 36e50ff3e48e9646d21aaf7a9204448deba403fa (diff) |
Remove using declarations
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5456 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DataStructure/Printer.cpp')
-rw-r--r-- | lib/Analysis/DataStructure/Printer.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/Analysis/DataStructure/Printer.cpp b/lib/Analysis/DataStructure/Printer.cpp index d8856b8390..e9b5a17972 100644 --- a/lib/Analysis/DataStructure/Printer.cpp +++ b/lib/Analysis/DataStructure/Printer.cpp @@ -14,7 +14,6 @@ #include "Support/Statistic.h" #include <fstream> #include <sstream> -using std::string; // OnlyPrintMain - The DataStructure printer exposes this option to allow // printing of only the graph for "main". @@ -28,7 +27,7 @@ namespace { void DSNode::dump() const { print(std::cerr, 0); } -static string getCaption(const DSNode *N, const DSGraph *G) { +static std::string getCaption(const DSNode *N, const DSGraph *G) { std::stringstream OS; Module *M = G && &G->getFunction() ? G->getFunction().getParent() : 0; @@ -153,8 +152,9 @@ void DSGraph::print(std::ostream &O) const { WriteGraph(O, this, "DataStructures"); } -void DSGraph::writeGraphToFile(std::ostream &O, const string &GraphName) const { - string Filename = GraphName + ".dot"; +void DSGraph::writeGraphToFile(std::ostream &O, + const std::string &GraphName) const { + std::string Filename = GraphName + ".dot"; O << "Writing '" << Filename << "'..."; std::ofstream F(Filename.c_str()); @@ -170,7 +170,7 @@ void DSGraph::writeGraphToFile(std::ostream &O, const string &GraphName) const { template <typename Collection> static void printCollection(const Collection &C, std::ostream &O, - const Module *M, const string &Prefix) { + const Module *M, const std::string &Prefix) { if (M == 0) { O << "Null Module pointer, cannot continue!\n"; return; |