diff options
author | David Greene <greened@obbligato.org> | 2009-07-08 21:53:41 +0000 |
---|---|---|
committer | David Greene <greened@obbligato.org> | 2009-07-08 21:53:41 +0000 |
commit | 229509a8bc2390c4c9c1bd20f777acf29911d452 (patch) | |
tree | e1b98785323b9262ee0588d318c57c3ade39a3b9 /include/llvm/Support/GraphWriter.h | |
parent | 59629c1d8baeb7407b419cce3b59bea0bb4a2bd9 (diff) |
Allow users of GraphWriter to display graphs asynchronously. This
provides a way to quickly dump a bunch of graph information to dot files
and display them. It's a timesaver when working on large systems.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75056 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/GraphWriter.h')
-rw-r--r-- | include/llvm/Support/GraphWriter.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/Support/GraphWriter.h b/include/llvm/Support/GraphWriter.h index 01b44d0b8e..4944788b9e 100644 --- a/include/llvm/Support/GraphWriter.h +++ b/include/llvm/Support/GraphWriter.h @@ -29,6 +29,7 @@ #include "llvm/System/Path.h" #include <fstream> #include <vector> +#include <cassert> namespace llvm { @@ -66,7 +67,7 @@ namespace DOT { // Private functions... } } -void DisplayGraph(const sys::Path& Filename); +void DisplayGraph(const sys::Path& Filename, bool wait=true); template<typename GraphType> class GraphWriter { |