[llvm] r256732 - [TableGen] Call llvm_shutdown on exit so that all the ManagedStatic objects in the support library will be deleted.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Sun Jan 3 20:51:51 PST 2016
Author: ctopper
Date: Sun Jan 3 22:51:51 2016
New Revision: 256732
URL: http://llvm.org/viewvc/llvm-project?rev=256732&view=rev
Log:
[TableGen] Call llvm_shutdown on exit so that all the ManagedStatic objects in the support library will be deleted.
Modified:
llvm/trunk/utils/TableGen/TableGen.cpp
Modified: llvm/trunk/utils/TableGen/TableGen.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/TableGen.cpp?rev=256732&r1=256731&r2=256732&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/TableGen.cpp (original)
+++ llvm/trunk/utils/TableGen/TableGen.cpp Sun Jan 3 22:51:51 2016
@@ -13,6 +13,7 @@
#include "TableGenBackends.h" // Declares all backends.
#include "llvm/Support/CommandLine.h"
+#include "llvm/Support/ManagedStatic.h"
#include "llvm/Support/PrettyStackTrace.h"
#include "llvm/Support/Signals.h"
#include "llvm/TableGen/Error.h"
@@ -182,6 +183,8 @@ int main(int argc, char **argv) {
PrettyStackTraceProgram X(argc, argv);
cl::ParseCommandLineOptions(argc, argv);
+ llvm_shutdown_obj Y;
+
return TableGenMain(argv[0], &LLVMTableGenMain);
}
More information about the llvm-commits
mailing list