diff options
author | Michael Kruse <llvm@meinersbur.de> | 2015-08-18 12:13:57 +0000 |
---|---|---|
committer | Michael Kruse <llvm@meinersbur.de> | 2015-08-18 12:13:57 +0000 |
commit | c0a8414c1ca4542799d573eb2e49e7f7086057d7 (patch) | |
tree | 0f630885b29a3e4e1142dcee8065dbc1e014875e /llvm/lib/Support/GraphWriter.cpp | |
parent | e69e1141d9c728355a9dc7b17cc333ba4d88a711 (diff) | |
download | bcm5719-llvm-c0a8414c1ca4542799d573eb2e49e7f7086057d7.tar.gz bcm5719-llvm-c0a8414c1ca4542799d573eb2e49e7f7086057d7.zip |
[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
llvm-svn: 245289
Diffstat (limited to 'llvm/lib/Support/GraphWriter.cpp')
-rw-r--r-- | llvm/lib/Support/GraphWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/GraphWriter.cpp b/llvm/lib/Support/GraphWriter.cpp index a9b02204146..0bbfde232a1 100644 --- a/llvm/lib/Support/GraphWriter.cpp +++ b/llvm/lib/Support/GraphWriter.cpp @@ -219,7 +219,7 @@ bool llvm::DisplayGraph(StringRef FilenameRef, bool wait, errs() << "Running '" << GeneratorPath << "' program... "; - if (ExecGraphViewer(GeneratorPath, args, Filename, wait, ErrMsg)) + if (ExecGraphViewer(GeneratorPath, args, Filename, true, ErrMsg)) return true; args.clear(); |