projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f124911
)
[TableGen] Call llvm_shutdown on exit so that all the ManagedStatic objects in the...
author
Craig Topper
<craig.topper@gmail.com>
Mon, 4 Jan 2016 04:51:51 +0000
(
04:51
+0000)
committer
Craig Topper
<craig.topper@gmail.com>
Mon, 4 Jan 2016 04:51:51 +0000
(
04:51
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256732
91177308
-0d34-0410-b5e6-
96231b3b80d8
utils/TableGen/TableGen.cpp
patch
|
blob
|
history
diff --git
a/utils/TableGen/TableGen.cpp
b/utils/TableGen/TableGen.cpp
index c16a5583eb36552234d9f2b9afd4ae9544e1458b..bcc594d69a1d90f70b7db0654ce901b0f66c6529 100644
(file)
--- 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);
}