[llvm-branch-commits] [cfe-branch] r124623 - /cfe/branches/Apple/sill/lib/Frontend/FrontendActions.cpp

Daniel Dunbar daniel at zuster.org
Mon Jan 31 15:39:31 PST 2011


Author: ddunbar
Date: Mon Jan 31 17:39:31 2011
New Revision: 124623

URL: http://llvm.org/viewvc/llvm-project?rev=124623&view=rev
Log:
Merge r124613:
--
Author: Daniel Dunbar <daniel at zuster.org>
Date:   Mon Jan 31 22:00:44 2011 +0000

    libclang: Don't allow RemoveFileOnSignal to be called via libclang, badness can
    ensue.

Modified:
    cfe/branches/Apple/sill/lib/Frontend/FrontendActions.cpp

Modified: cfe/branches/Apple/sill/lib/Frontend/FrontendActions.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/Apple/sill/lib/Frontend/FrontendActions.cpp?rev=124623&r1=124622&r2=124623&view=diff
==============================================================================
--- cfe/branches/Apple/sill/lib/Frontend/FrontendActions.cpp (original)
+++ cfe/branches/Apple/sill/lib/Frontend/FrontendActions.cpp Mon Jan 31 17:39:31 2011
@@ -93,7 +93,10 @@
     return true;
   }
 
-  OS = CI.createDefaultOutputFile(true, InFile);
+  // We use createOutputFile here because this is exposed via libclang, and we
+  // must disable the RemoveFileOnSignal behavior.
+  OS = CI.createOutputFile(CI.getFrontendOpts().OutputFile, /*Binary=*/true,
+                           /*RemoveFileOnSignal=*/false, InFile);
   if (!OS)
     return true;
 





More information about the llvm-branch-commits mailing list