diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-14 17:11:14 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-14 17:11:14 +0000 |
commit | 3e3e040574b764aacd76828a7df6f9b3ad0eebd2 (patch) | |
tree | 004d2d2e4ffb8e21f25b44998e58023ac780fece /llvm/lib/Support/GraphWriter.cpp | |
parent | 6a6f04a3b62f882c33f98cb19d9a482d5c6e5779 (diff) | |
download | bcm5719-llvm-3e3e040574b764aacd76828a7df6f9b3ad0eebd2.tar.gz bcm5719-llvm-3e3e040574b764aacd76828a7df6f9b3ad0eebd2.zip |
Don't use PathV1.h in GraphWriter.cpp.
llvm-svn: 183988
Diffstat (limited to 'llvm/lib/Support/GraphWriter.cpp')
-rw-r--r-- | llvm/lib/Support/GraphWriter.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/llvm/lib/Support/GraphWriter.cpp b/llvm/lib/Support/GraphWriter.cpp index 163345e4e65..20214c71d6b 100644 --- a/llvm/lib/Support/GraphWriter.cpp +++ b/llvm/lib/Support/GraphWriter.cpp @@ -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 |