aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Analysis/DataStructure
diff options
context:
space:
mode:
authorAnand Shukla <ashukla@cs.uiuc.edu>2002-07-16 00:03:10 +0000
committerAnand Shukla <ashukla@cs.uiuc.edu>2002-07-16 00:03:10 +0000
commit6c5ed410b20a03c267405932dc829d5c88c1dfdd (patch)
tree95ef5408853802eba387f5da5b9c740ed0fd41db /lib/Analysis/DataStructure
parent4d2da0d7a74f1648ef7d4946ae87ec3e6b3209cf (diff)
downloadexternal_llvm-6c5ed410b20a03c267405932dc829d5c88c1dfdd.zip
external_llvm-6c5ed410b20a03c267405932dc829d5c88c1dfdd.tar.gz
external_llvm-6c5ed410b20a03c267405932dc829d5c88c1dfdd.tar.bz2
added std:: to string
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2915 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DataStructure')
-rw-r--r--lib/Analysis/DataStructure/Printer.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Analysis/DataStructure/Printer.cpp b/lib/Analysis/DataStructure/Printer.cpp
index ecd5486..15f8df1 100644
--- a/lib/Analysis/DataStructure/Printer.cpp
+++ b/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;