[llvm-commits] CVS: llvm/tools/llvm-dis/llvm-dis.cpp
Chris Lattner
sabre at nondot.org
Tue Dec 5 17:18:52 PST 2006
Changes in directory llvm/tools/llvm-dis:
llvm-dis.cpp updated: 1.52 -> 1.53
---
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: (+3 -0)
llvm-dis.cpp | 3 +++
1 files changed, 3 insertions(+)
Index: llvm/tools/llvm-dis/llvm-dis.cpp
diff -u llvm/tools/llvm-dis/llvm-dis.cpp:1.52 llvm/tools/llvm-dis/llvm-dis.cpp:1.53
--- llvm/tools/llvm-dis/llvm-dis.cpp:1.52 Tue Nov 28 17:33:06 2006
+++ llvm/tools/llvm-dis/llvm-dis.cpp Tue Dec 5 19:18:01 2006
@@ -21,6 +21,7 @@
#include "llvm/Bytecode/Reader.h"
#include "llvm/Assembly/PrintModulePass.h"
#include "llvm/Support/CommandLine.h"
+#include "llvm/Support/ManagedStatic.h"
#include "llvm/Support/Streams.h"
#include "llvm/System/Signals.h"
#include <iostream>
@@ -39,6 +40,7 @@
Force("f", cl::desc("Overwrite output files"));
int main(int argc, char **argv) {
+ llvm_shutdown_obj X; // Call llvm_shutdown() on exit.
try {
cl::ParseCommandLineOptions(argc, argv, " llvm .bc -> .ll disassembler\n");
sys::PrintStackTraceOnErrorSignal();
@@ -115,6 +117,7 @@
} catch (...) {
llvm_cerr << argv[0] << ": Unexpected unknown exception occurred.\n";
}
+
return 1;
}
More information about the llvm-commits
mailing list