[llvm] r183920 - Update code for other graph viewing programs too.

Rafael Espindola rafael.espindola at gmail.com
Thu Jun 13 10:27:46 PDT 2013


Author: rafael
Date: Thu Jun 13 12:27:45 2013
New Revision: 183920

URL: http://llvm.org/viewvc/llvm-project?rev=183920&view=rev
Log:
Update code for other graph viewing programs too.

Modified:
    llvm/trunk/lib/Support/GraphWriter.cpp

Modified: llvm/trunk/lib/Support/GraphWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/GraphWriter.cpp?rev=183920&r1=183919&r2=183920&view=diff
==============================================================================
--- llvm/trunk/lib/Support/GraphWriter.cpp (original)
+++ llvm/trunk/lib/Support/GraphWriter.cpp Thu Jun 13 12:27:45 2013
@@ -100,8 +100,9 @@ ExecGraphViewer(StringRef ExecPath, std:
   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 Filena
 #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);





More information about the llvm-commits mailing list