[llvm] r245289 - [Support] Always wait for GraphViz before opening the viewer
Michael Kruse via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 18 05:13:57 PDT 2015
Author: meinersbur
Date: Tue Aug 18 07:13:57 2015
New Revision: 245289
URL: http://llvm.org/viewvc/llvm-project?rev=245289&view=rev
Log:
[Support] Always wait for GraphViz before opening the viewer
Summary:
When calling DisplayGraph and a PS viewer is chosen, two programs are executed: The GraphViz generator and the PostScript viewer. Always for the generator to finish to ensure that the .ps file is written before opening the viewer for that file. DisplayGraph's wait parameter refers to whether to wait until the user closes the viewer.
This happened on Windows and if none of the options to open the .dot file directly applies, also on Linux.
Reviewers: Bigcheese, chandlerc, aaron.ballman
Subscribers: dwiberg, aaron.ballman, llvm-commits
Differential Revision: http://reviews.llvm.org/D11876
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=245289&r1=245288&r2=245289&view=diff
==============================================================================
--- llvm/trunk/lib/Support/GraphWriter.cpp (original)
+++ llvm/trunk/lib/Support/GraphWriter.cpp Tue Aug 18 07:13:57 2015
@@ -219,7 +219,7 @@ bool llvm::DisplayGraph(StringRef Filena
errs() << "Running '" << GeneratorPath << "' program... ";
- if (ExecGraphViewer(GeneratorPath, args, Filename, wait, ErrMsg))
+ if (ExecGraphViewer(GeneratorPath, args, Filename, true, ErrMsg))
return true;
args.clear();
More information about the llvm-commits
mailing list