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

Chris Lattner sabre at nondot.org
Sun Dec 10 11:02:07 PST 2006



Changes in directory llvm/tools/lli:

lli.cpp updated: 1.61 -> 1.62
---
Log message:

make statistics and timing info print even if the JIT'd program calls exit
instead of returning from main.


---
Diffs of the changes:  (+1 -1)

 lli.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/tools/lli/lli.cpp
diff -u llvm/tools/lli/lli.cpp:1.61 llvm/tools/lli/lli.cpp:1.62
--- llvm/tools/lli/lli.cpp:1.61	Tue Dec  5 19:18:00 2006
+++ llvm/tools/lli/lli.cpp	Sun Dec 10 13:01:52 2006
@@ -57,7 +57,7 @@
 // main Driver function
 //
 int main(int argc, char **argv, char * const *envp) {
-  llvm_shutdown_obj X;  // Call llvm_shutdown() on exit.
+  atexit(llvm_shutdown);  // Call llvm_shutdown() on exit.
   try {
     cl::ParseCommandLineOptions(argc, argv,
                                 " llvm interpreter & dynamic compiler\n");






More information about the llvm-commits mailing list