[cfe-commits] r58308 - /cfe/trunk/Driver/clang.cpp

Daniel Dunbar daniel at zuster.org
Mon Oct 27 17:38:08 PDT 2008


Author: ddunbar
Date: Mon Oct 27 19:38:08 2008
New Revision: 58308

URL: http://llvm.org/viewvc/llvm-project?rev=58308&view=rev
Log:
Call llvm_shutdown() on (normal) termination. This makes --time-passes usable.

Modified:
    cfe/trunk/Driver/clang.cpp

Modified: cfe/trunk/Driver/clang.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/clang.cpp?rev=58308&r1=58307&r2=58308&view=diff

==============================================================================
--- cfe/trunk/Driver/clang.cpp (original)
+++ cfe/trunk/Driver/clang.cpp Mon Oct 27 19:38:08 2008
@@ -45,6 +45,7 @@
 #include "llvm/ADT/StringExtras.h"
 #include "llvm/Config/config.h"
 #include "llvm/Support/CommandLine.h"
+#include "llvm/Support/ManagedStatic.h"
 #include "llvm/Support/MemoryBuffer.h"
 #include "llvm/System/Host.h"
 #include "llvm/System/Path.h"
@@ -1534,5 +1535,9 @@
   if (VerifyDiagnostics)
     return 0;
 
+  // Managed static deconstruction. Useful for making things like
+  // -time-passes usable.
+  llvm::llvm_shutdown();
+
   return HadErrors || (Diags.getNumErrors() != 0);
 }





More information about the cfe-commits mailing list