[llvm-commits] CVS: llvm/tools/llvm-ranlib/llvm-ranlib.cpp
Chris Lattner
sabre at nondot.org
Tue Dec 5 17:18:53 PST 2006
Changes in directory llvm/tools/llvm-ranlib:
llvm-ranlib.cpp updated: 1.10 -> 1.11
---
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-ranlib.cpp | 2 ++
1 files changed, 2 insertions(+)
Index: llvm/tools/llvm-ranlib/llvm-ranlib.cpp
diff -u llvm/tools/llvm-ranlib/llvm-ranlib.cpp:1.10 llvm/tools/llvm-ranlib/llvm-ranlib.cpp:1.11
--- llvm/tools/llvm-ranlib/llvm-ranlib.cpp:1.10 Fri Aug 25 00:29:36 2006
+++ llvm/tools/llvm-ranlib/llvm-ranlib.cpp Tue Dec 5 19:18:01 2006
@@ -14,6 +14,7 @@
#include "llvm/Module.h"
#include "llvm/Bytecode/Archive.h"
#include "llvm/Support/CommandLine.h"
+#include "llvm/Support/ManagedStatic.h"
#include "llvm/System/Signals.h"
#include <iostream>
#include <iomanip>
@@ -41,6 +42,7 @@
}
int main(int argc, char **argv) {
+ llvm_shutdown_obj X; // Call llvm_shutdown() on exit.
// Have the command line options parsed and handle things
// like --help and --version.
More information about the llvm-commits
mailing list