aboutsummaryrefslogtreecommitdiff
path: root/llvm/utils/TableGen/TableGen.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2016-01-04 04:51:51 +0000
committerCraig Topper <craig.topper@gmail.com>2016-01-04 04:51:51 +0000
commitdc6c3fc3d666bedbbb7b1a3b60c1f317cbb2ef8b (patch)
treee1a6dfc8880d0d2116f048b6a75bc2f85b58e1e8 /llvm/utils/TableGen/TableGen.cpp
parentd3dfa14ad3eb7e91e2f357903cf7e49c9fb1ddad (diff)
downloadllvm-dc6c3fc3d666bedbbb7b1a3b60c1f317cbb2ef8b.zip
llvm-dc6c3fc3d666bedbbb7b1a3b60c1f317cbb2ef8b.tar.gz
llvm-dc6c3fc3d666bedbbb7b1a3b60c1f317cbb2ef8b.tar.bz2
[TableGen] Call llvm_shutdown on exit so that all the ManagedStatic objects in the support library will be deleted.
llvm-svn: 256732
Diffstat (limited to 'llvm/utils/TableGen/TableGen.cpp')
-rw-r--r--llvm/utils/TableGen/TableGen.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/utils/TableGen/TableGen.cpp b/llvm/utils/TableGen/TableGen.cpp
index c16a558..bcc594d 100644
--- a/llvm/utils/TableGen/TableGen.cpp
+++ b/llvm/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);
}