diff options
author | Chris Lattner <sabre@nondot.org> | 2010-04-13 04:35:39 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-04-13 04:35:39 +0000 |
commit | 33154c1fc68969ef0ee3b0be03cc2ef4a01d2d8e (patch) | |
tree | c18bdc711878c748cfc9297302818b01ebc40d2a /llvm/lib/Support/GraphWriter.cpp | |
parent | 33eb59a61be2e070b2f56a2d609859ad3f9ce3ec (diff) | |
download | bcm5719-llvm-33154c1fc68969ef0ee3b0be03cc2ef4a01d2d8e.tar.gz bcm5719-llvm-33154c1fc68969ef0ee3b0be03cc2ef4a01d2d8e.zip |
Fix PR6826: GraphWriter delete the generated file before "dotty" load it,
patch by 'ether'.
llvm-svn: 101116
Diffstat (limited to 'llvm/lib/Support/GraphWriter.cpp')
-rw-r--r-- | llvm/lib/Support/GraphWriter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Support/GraphWriter.cpp b/llvm/lib/Support/GraphWriter.cpp index ec84f9beca0..e300b1f36a5 100644 --- a/llvm/lib/Support/GraphWriter.cpp +++ b/llvm/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(); |