Changes in directory llvm/tools/llvm-upgrade:
llvm-upgrade.cpp updated: 1.3 -> 1.4 --- Log message: make all llvm tools call llvm_shutdown when they exit, static'ify some stuff. With this change, I can now move -stats to print when llvm_shutdown is called. --- Diffs of the changes: (+2 -0) llvm-upgrade.cpp | 2 ++ 1 files changed, 2 insertions(+) Index: llvm/tools/llvm-upgrade/llvm-upgrade.cpp diff -u llvm/tools/llvm-upgrade/llvm-upgrade.cpp:1.3 llvm/tools/llvm-upgrade/llvm-upgrade.cpp:1.4 --- llvm/tools/llvm-upgrade/llvm-upgrade.cpp:1.3 Fri Dec 1 14:26:20 2006 +++ llvm/tools/llvm-upgrade/llvm-upgrade.cpp Tue Dec 5 19:18:01 2006 @@ -21,6 +21,7 @@ #include "ParserInternals.h" #include "llvm/Support/CommandLine.h" +#include "llvm/Support/ManagedStatic.h" #include "llvm/Support/Streams.h" #include "llvm/Support/SystemUtils.h" #include "llvm/System/Signals.h" @@ -44,6 +45,7 @@ cl::init(false)); int main(int argc, char **argv) { + llvm_shutdown_obj X; // Call llvm_shutdown() on exit. cl::ParseCommandLineOptions(argc, argv, " llvm .ll -> .bc assembler\n"); sys::PrintStackTraceOnErrorSignal(); _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits