summaryrefslogtreecommitdiff
path: root/lib/Support/GraphWriter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-04-13 04:35:39 +0000
committerChris Lattner <sabre@nondot.org>2010-04-13 04:35:39 +0000
commit7c57b7b80838eb48db03f4cfc7839864822c0112 (patch)
treee90e1f3309555793e850e704adb19ea8559602e9 /lib/Support/GraphWriter.cpp
parentb123b8bee0b2c3f5e296ef7ca067e20982a7dbc8 (diff)
downloadllvm-7c57b7b80838eb48db03f4cfc7839864822c0112.tar.gz
llvm-7c57b7b80838eb48db03f4cfc7839864822c0112.tar.bz2
llvm-7c57b7b80838eb48db03f4cfc7839864822c0112.tar.xz
Fix PR6826: GraphWriter delete the generated file before "dotty" load it,
patch by 'ether'. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101116 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/GraphWriter.cpp')
-rw-r--r--lib/Support/GraphWriter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Support/GraphWriter.cpp b/lib/Support/GraphWriter.cpp
index ec84f9beca..e300b1f36a 100644
--- a/lib/Support/GraphWriter.cpp
+++ b/lib/Support/GraphWriter.cpp
@@ -166,7 +166,8 @@ void llvm::DisplayGraph(const sys::Path &Filename, bool wait,
errs() << "Error viewing graph " << Filename.str() << ": "
<< ErrMsg << "\n";
} else {
-#ifdef __MINGW32__ // Dotty spawns another app and doesn't wait until it returns
+// Dotty spawns another app and doesn't wait until it returns
+#if defined (__MINGW32__) || defined (_WINDOWS)
return;
#endif
Filename.eraseFromDisk();