summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/GraphWriter.cpp
diff options
context:
space:
mode:
authorMichael Kruse <llvm@meinersbur.de>2015-08-18 12:13:57 +0000
committerMichael Kruse <llvm@meinersbur.de>2015-08-18 12:13:57 +0000
commitc0a8414c1ca4542799d573eb2e49e7f7086057d7 (patch)
tree0f630885b29a3e4e1142dcee8065dbc1e014875e /llvm/lib/Support/GraphWriter.cpp
parente69e1141d9c728355a9dc7b17cc333ba4d88a711 (diff)
downloadbcm5719-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.cpp2
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();
OpenPOWER on IntegriCloud