[llvm-commits] [llvm] r101116 - /llvm/trunk/lib/Support/GraphWriter.cpp

Chris Lattner sabre at nondot.org
Mon Apr 12 21:35:39 PDT 2010


Author: lattner
Date: Mon Apr 12 23:35:39 2010
New Revision: 101116

URL: http://llvm.org/viewvc/llvm-project?rev=101116&view=rev
Log:
Fix PR6826: GraphWriter delete the generated file before "dotty" load it,
patch by 'ether'.

Modified:
    llvm/trunk/lib/Support/GraphWriter.cpp

Modified: llvm/trunk/lib/Support/GraphWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/GraphWriter.cpp?rev=101116&r1=101115&r2=101116&view=diff
==============================================================================
--- llvm/trunk/lib/Support/GraphWriter.cpp (original)
+++ llvm/trunk/lib/Support/GraphWriter.cpp Mon Apr 12 23:35:39 2010
@@ -166,7 +166,8 @@
      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();





More information about the llvm-commits mailing list