[llvm] r183921 - Covert remaining graph viewers from sys::Path to std::string.

Rafael Espindola rafael.espindola at gmail.com
Thu Jun 13 10:32:16 PDT 2013


Author: rafael
Date: Thu Jun 13 12:32:16 2013
New Revision: 183921

URL: http://llvm.org/viewvc/llvm-project?rev=183921&view=rev
Log:
Covert remaining graph viewers from sys::Path to std::string.

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=183921&r1=183920&r2=183921&view=diff
==============================================================================
--- llvm/trunk/lib/Support/GraphWriter.cpp (original)
+++ llvm/trunk/lib/Support/GraphWriter.cpp Thu Jun 13 12:32:16 2013
@@ -106,7 +106,7 @@ void llvm::DisplayGraph(StringRef Filena
   wait &= !ViewBackground;
   std::string ErrMsg;
 #if HAVE_GRAPHVIZ
-  sys::Path Graphviz(LLVM_PATH_GRAPHVIZ);
+  std::string Graphviz(LLVM_PATH_GRAPHVIZ);
 
   std::vector<const char*> args;
   args.push_back(Graphviz.c_str());
@@ -133,7 +133,7 @@ void llvm::DisplayGraph(StringRef Filena
   args.push_back(0);
 
   errs() << "Running 'xdot.py' program... ";
-  if (!ExecGraphViewer(sys::Path(LLVM_PATH_XDOT_PY), args, Filename, wait, ErrMsg))
+  if (!ExecGraphViewer(LLVM_PATH_XDOT_PY, args, Filename, wait, ErrMsg))
     return;
 
 #elif (HAVE_GV && (HAVE_DOT || HAVE_FDP || HAVE_NEATO || \
@@ -209,7 +209,7 @@ void llvm::DisplayGraph(StringRef Filena
     return;
 
 #elif HAVE_DOTTY
-  sys::Path dotty(LLVM_PATH_DOTTY);
+  std::string dotty(LLVM_PATH_DOTTY);
 
   std::vector<const char*> args;
   args.push_back(dotty.c_str());





More information about the llvm-commits mailing list