From d149f59b51ee20d6ce0862d338dc4cfe172dd8ff Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Mon, 4 Jan 2016 04:51:51 +0000 Subject: [PATCH] [TableGen] Call llvm_shutdown on exit so that all the ManagedStatic objects in the support library will be deleted. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256732 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/TableGen/TableGen.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utils/TableGen/TableGen.cpp b/utils/TableGen/TableGen.cpp index c16a5583eb3..bcc594d69a1 100644 --- a/utils/TableGen/TableGen.cpp +++ b/utils/TableGen/TableGen.cpp @@ -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); } -- 2.34.1