aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/GraphWriter.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-06-13 17:27:45 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-06-13 17:27:45 +0000
commit48944e7a9ac867e9b0bf3b57c70abc4846b92b0b (patch)
treec99b251f675b702ede47c09f6021d6d52802b970 /llvm/lib/Support/GraphWriter.cpp
parentce61b1e5b11f6164864ed1c29a5186fdf6850173 (diff)
downloadllvm-48944e7a9ac867e9b0bf3b57c70abc4846b92b0b.zip
llvm-48944e7a9ac867e9b0bf3b57c70abc4846b92b0b.tar.gz
llvm-48944e7a9ac867e9b0bf3b57c70abc4846b92b0b.tar.bz2
Update code for other graph viewing programs too.
llvm-svn: 183920
Diffstat (limited to 'llvm/lib/Support/GraphWriter.cpp')
-rw-r--r--llvm/lib/Support/GraphWriter.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Support/GraphWriter.cpp b/llvm/lib/Support/GraphWriter.cpp
index 3a305d8..23a2696 100644
--- a/llvm/lib/Support/GraphWriter.cpp
+++ b/llvm/lib/Support/GraphWriter.cpp
@@ -100,8 +100,9 @@ ExecGraphViewer(StringRef ExecPath, std::vector<const char*> &args,
return true;
}
-void llvm::DisplayGraph(StringRef Filename, bool wait,
+void llvm::DisplayGraph(StringRef FilenameRef, bool wait,
GraphProgram::Name program) {
+ std::string Filename = FilenameRef;
wait &= !ViewBackground;
std::string ErrMsg;
#if HAVE_GRAPHVIZ
@@ -182,12 +183,11 @@ void llvm::DisplayGraph(StringRef Filename, bool wait,
#endif
std::vector<const char*> args;
- std::string FilenameStr = Filename;
args.push_back(prog.c_str());
args.push_back("-Tps");
args.push_back("-Nfontname=Courier");
args.push_back("-Gsize=7.5,10");
- args.push_back(FilenameStr.c_str());
+ args.push_back(Filename.c_str());
args.push_back("-o");
args.push_back(PSFilename.c_str());
args.push_back(0);