[llvm-commits] CVS: llvm/tools/llvm-db/llvm-db.cpp
Chris Lattner
sabre at nondot.org
Tue Dec 5 17:18:54 PST 2006
Changes in directory llvm/tools/llvm-db:
llvm-db.cpp updated: 1.12 -> 1.13
---
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 -1)
llvm-db.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
Index: llvm/tools/llvm-db/llvm-db.cpp
diff -u llvm/tools/llvm-db/llvm-db.cpp:1.12 llvm/tools/llvm-db/llvm-db.cpp:1.13
--- llvm/tools/llvm-db/llvm-db.cpp:1.12 Wed Jun 7 19:25:44 2006
+++ llvm/tools/llvm-db/llvm-db.cpp Tue Dec 5 19:18:00 2006
@@ -14,9 +14,9 @@
#include "CLIDebugger.h"
#include "llvm/Support/CommandLine.h"
+#include "llvm/Support/ManagedStatic.h"
#include "llvm/System/Signals.h"
#include <iostream>
-
using namespace llvm;
namespace {
@@ -49,6 +49,7 @@
// main Driver function
//
int main(int argc, char **argv, char * const *envp) {
+ llvm_shutdown_obj X; // Call llvm_shutdown() on exit.
std::cout << "NOTE: llvm-db is known useless right now.\n";
try {
cl::ParseCommandLineOptions(argc, argv,
More information about the llvm-commits
mailing list