[llvm-commits] CVS: llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
Chris Lattner
sabre at nondot.org
Tue Dec 5 17:18:54 PST 2006
Changes in directory llvm/tools/llvm-bcanalyzer:
llvm-bcanalyzer.cpp updated: 1.8 -> 1.9
---
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 -2)
llvm-bcanalyzer.cpp | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
Index: llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
diff -u llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp:1.8 llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp:1.9
--- llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp:1.8 Thu Nov 2 14:25:50 2006
+++ llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp Tue Dec 5 19:18:00 2006
@@ -32,6 +32,7 @@
#include "llvm/Analysis/Verifier.h"
#include "llvm/Bytecode/Analyzer.h"
#include "llvm/Support/CommandLine.h"
+#include "llvm/Support/ManagedStatic.h"
#include "llvm/System/Signals.h"
#include <fstream>
#include <iostream>
@@ -48,8 +49,8 @@
static cl::opt<bool> Dump ("dump", cl::desc("Dump low level bytecode trace"));
static cl::opt<bool> Verify ("verify", cl::desc("Progressively verify module"));
-int
-main(int argc, char **argv) {
+int main(int argc, char **argv) {
+ llvm_shutdown_obj X; // Call llvm_shutdown() on exit.
try {
cl::ParseCommandLineOptions(argc, argv,
" llvm-bcanalyzer Analysis of ByteCode Dumper\n");
More information about the llvm-commits
mailing list