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

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



Changes in directory llvm/tools/lli:

lli.cpp updated: 1.60 -> 1.61
---
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)

 lli.cpp |    2 ++
 1 files changed, 2 insertions(+)


Index: llvm/tools/lli/lli.cpp
diff -u llvm/tools/lli/lli.cpp:1.60 llvm/tools/lli/lli.cpp:1.61
--- llvm/tools/lli/lli.cpp:1.60	Thu Sep 14 01:17:09 2006
+++ llvm/tools/lli/lli.cpp	Tue Dec  5 19:18:00 2006
@@ -22,6 +22,7 @@
 #include "llvm/ExecutionEngine/Interpreter.h"
 #include "llvm/ExecutionEngine/GenericValue.h"
 #include "llvm/Support/CommandLine.h"
+#include "llvm/Support/ManagedStatic.h"
 #include "llvm/Support/PluginLoader.h"
 #include "llvm/System/Process.h"
 #include "llvm/System/Signals.h"
@@ -56,6 +57,7 @@
 // main Driver function
 //
 int main(int argc, char **argv, char * const *envp) {
+  llvm_shutdown_obj X;  // Call llvm_shutdown() on exit.
   try {
     cl::ParseCommandLineOptions(argc, argv,
                                 " llvm interpreter & dynamic compiler\n");






More information about the llvm-commits mailing list