From e1e7310749008a515ddd5bf6398df17644f53b33 Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Mon, 8 Jul 2013 20:24:54 +0000 Subject: Find xdot or xdot.py. Ubuntu installs this as xdot, so finding xdot.py would fail. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185860 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/GraphWriter.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/Support/GraphWriter.cpp') diff --git a/lib/Support/GraphWriter.cpp b/lib/Support/GraphWriter.cpp index 64d21642e8..7a9400d28a 100644 --- a/lib/Support/GraphWriter.cpp +++ b/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 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 || \ -- cgit v1.2.3