From b3416bc9ccd9d7f379d14238bae297a9613999cf Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 1 Feb 2003 04:01:21 +0000 Subject: Remove using declarations git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5456 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/DataStructure/Printer.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/Analysis/DataStructure/Printer.cpp') 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 #include -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 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; -- cgit v1.2.3-18-g5258