[TableGen] Call llvm_shutdown on exit so that all the ManagedStatic objects in the support library will be deleted.

llvm-svn: 256731
This commit is contained in:
Craig Topper 2016-01-04 04:51:46 +00:00
parent ca1c9f074f
commit d3dfa14ad3
1 changed files with 3 additions and 0 deletions

View File

@ -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"
@ -244,6 +245,8 @@ int main(int argc, char **argv) {
PrettyStackTraceProgram X(argc, argv);
cl::ParseCommandLineOptions(argc, argv);
llvm_shutdown_obj Y;
return TableGenMain(argv[0], &ClangTableGenMain);
}