diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2013-07-08 20:24:54 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2013-07-08 20:24:54 +0000 |
commit | fe56cc67c5e57521272ecef3beb360eed81ae402 (patch) | |
tree | 4b97a5e32824ca5acea3844813038dadadb97471 /llvm/lib | |
parent | 9096217280533f4ecccc6174feb89fc9132c24ef (diff) | |
download | bcm5719-llvm-fe56cc67c5e57521272ecef3beb360eed81ae402.tar.gz bcm5719-llvm-fe56cc67c5e57521272ecef3beb360eed81ae402.zip |
Find xdot or xdot.py.
Ubuntu installs this as xdot, so finding xdot.py would fail.
llvm-svn: 185860
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Support/GraphWriter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Support/GraphWriter.cpp b/llvm/lib/Support/GraphWriter.cpp index 64d21642e8e..7a9400d28af 100644 --- a/llvm/lib/Support/GraphWriter.cpp +++ b/llvm/lib/Support/GraphWriter.cpp @@ -115,9 +115,9 @@ void llvm::DisplayGraph(StringRef FilenameRef, bool wait, if (!ExecGraphViewer(Graphviz, args, Filename, wait, ErrMsg)) return; -#elif HAVE_XDOT_PY +#elif HAVE_XDOT std::vector<const char*> args; - args.push_back(LLVM_PATH_XDOT_PY); + args.push_back(LLVM_PATH_XDOT); args.push_back(Filename.c_str()); switch (program) { @@ -131,7 +131,7 @@ void llvm::DisplayGraph(StringRef FilenameRef, bool wait, args.push_back(0); errs() << "Running 'xdot.py' program... "; - if (!ExecGraphViewer(LLVM_PATH_XDOT_PY, args, Filename, wait, ErrMsg)) + if (!ExecGraphViewer(LLVM_PATH_XDOT, args, Filename, wait, ErrMsg)) return; #elif (HAVE_GV && (HAVE_DOT || HAVE_FDP || HAVE_NEATO || \ |