diff options
author | Anand Shukla <ashukla@cs.uiuc.edu> | 2002-07-16 00:03:10 +0000 |
---|---|---|
committer | Anand Shukla <ashukla@cs.uiuc.edu> | 2002-07-16 00:03:10 +0000 |
commit | d862545ad25e8cd8827d8b0d7c819db5fbcda98c (patch) | |
tree | ca87e10b27b619093647d681f81f6613715bf07c /llvm/lib/Analysis/DataStructure/Printer.cpp | |
parent | 991873fc5cdf5ff6f1c7b76825c65a9a1e5c8f89 (diff) | |
download | bcm5719-llvm-d862545ad25e8cd8827d8b0d7c819db5fbcda98c.tar.gz bcm5719-llvm-d862545ad25e8cd8827d8b0d7c819db5fbcda98c.zip |
added std:: to string
llvm-svn: 2915
Diffstat (limited to 'llvm/lib/Analysis/DataStructure/Printer.cpp')
-rw-r--r-- | llvm/lib/Analysis/DataStructure/Printer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Analysis/DataStructure/Printer.cpp b/llvm/lib/Analysis/DataStructure/Printer.cpp index ecd5486602f..15f8df19ef1 100644 --- a/llvm/lib/Analysis/DataStructure/Printer.cpp +++ b/llvm/lib/Analysis/DataStructure/Printer.cpp @@ -62,8 +62,8 @@ static void replaceIn(std::string &S, char From, const std::string &To) { } } -static string escapeLabel(const string &In) { - string Label(In); +static std::string escapeLabel(const std::string &In) { + std::string Label(In); replaceIn(Label, '\\', "\\\\"); // Escape caption... replaceIn(Label, '\n', "\\n"); replaceIn(Label, ' ', "\\ "); @@ -74,7 +74,7 @@ static string escapeLabel(const string &In) { static void writeEdge(std::ostream &O, const void *SrcNode, const char *SrcNodePortName, int SrcNodeIdx, - const DSNode *VS, const string &EdgeAttr = "") { + const DSNode *VS, const std::string &EdgeAttr = "") { O << "\tNode" << SrcNode << SrcNodePortName; if (SrcNodeIdx != -1) O << SrcNodeIdx; O << " -> Node" << (void*)VS; @@ -85,7 +85,7 @@ static void writeEdge(std::ostream &O, const void *SrcNode, } void DSNode::print(std::ostream &O, const DSGraph *G) const { - string Caption = escapeLabel(getCaption(G)); + std::string Caption = escapeLabel(getCaption(G)); O << "\tNode" << (void*)this << " [ label =\"{" << Caption; |