[llvm-commits] CVS: llvm/tools/llvm-upgrade/llvm-upgrade.cpp

Chris Lattner sabre at nondot.org
Tue Dec 5 17:18:52 PST 2006



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();
 






More information about the llvm-commits mailing list