[Support] Reapply r245289 "Always wait for GraphViz before opening the viewer"
authorMichael Kruse <llvm@meinersbur.de>
Fri, 18 Sep 2015 10:56:30 +0000 (10:56 +0000)
committerMichael Kruse <llvm@meinersbur.de>
Fri, 18 Sep 2015 10:56:30 +0000 (10:56 +0000)
commit6150806853b9fe36f9a02277c583787f4cb026f0
treef6171a0eb45b79bd4326f2d7df5da51b2c0e77f7
parent2cb0b641c5525dd38c89c7c315bb7bc346030582
[Support] Reapply r245289 "Always wait for GraphViz before opening the viewer"

The change was accidentally undone by r245290.

Original log message:
When calling DisplayGraph and a PS viewer is chosen, two programs are executed: The GraphViz generator and the PostScript viewer. Always wait 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.

Differential Revision: http://reviews.llvm.org/D11876

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247980 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/GraphWriter.cpp