shutdown the app when done.
authorChris Lattner <sabre@nondot.org>
Wed, 31 Jan 2007 20:10:54 +0000 (20:10 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 31 Jan 2007 20:10:54 +0000 (20:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33716 91177308-0d34-0410-b5e6-96231b3b80d8

tools/gccld/gccld.cpp

index 77ab03c0278c15ba2ecdd3a706e20d95875a1289..c153f81124769e2608bc4d3db7ab245a829880b8 100644 (file)
@@ -29,6 +29,7 @@
 #include "llvm/Transforms/IPO.h"
 #include "llvm/Transforms/Scalar.h"
 #include "llvm/Support/CommandLine.h"
+#include "llvm/Support/ManagedStatic.h"
 #include "llvm/Support/FileUtilities.h"
 #include "llvm/Support/ManagedStatic.h"
 #include "llvm/Support/Streams.h"
@@ -420,6 +421,7 @@ int main(int argc, char **argv, char **envp ) {
     cerr << argv[0] << ": An unexpected unknown exception occurred.\n";
     exitCode = 3;
   }
-
+  
+  llvm_shutdown();
   return exitCode;
 }