Don't use PathV1.h in GraphWriter.cpp.
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 14 Jun 2013 17:11:14 +0000 (17:11 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 14 Jun 2013 17:11:14 +0000 (17:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183988 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/GraphWriter.cpp

index 163345e4e65f436cc3a75a53f37c054f10097968..20214c71d6b3f55a117d2e4aa0a333758befce01 100644 (file)
@@ -16,7 +16,6 @@
 #include "llvm/Support/CommandLine.h"
 #include "llvm/Support/FileSystem.h"
 #include "llvm/Support/Path.h"
-#include "llvm/Support/PathV1.h"
 #include "llvm/Support/Program.h"
 using namespace llvm;
 
@@ -138,9 +137,7 @@ void llvm::DisplayGraph(StringRef FilenameRef, bool wait,
 
 #elif (HAVE_GV && (HAVE_DOT || HAVE_FDP || HAVE_NEATO || \
                    HAVE_TWOPI || HAVE_CIRCO))
-  sys::Path PSFilename = sys::Path(Filename);
-  PSFilename.appendSuffix("ps");
-
+  std::string PSFilename = Filename + ".ps";
   std::string prog;
 
   // Set default grapher
@@ -205,7 +202,7 @@ void llvm::DisplayGraph(StringRef FilenameRef, bool wait,
   args.push_back(0);
 
   ErrMsg.clear();
-  if (!ExecGraphViewer(gv, args, PSFilename.str(), wait, ErrMsg))
+  if (!ExecGraphViewer(gv, args, PSFilename, wait, ErrMsg))
     return;
 
 #elif HAVE_DOTTY