forked from OSchip/llvm-project
[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:
parent
ca1c9f074f
commit
d3dfa14ad3
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue