summaryrefslogtreecommitdiff
path: root/tools/lli
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-12-10 19:01:52 +0000
committerChris Lattner <sabre@nondot.org>2006-12-10 19:01:52 +0000
commitca3aa26c202c8442eaa6725ace1a88dffd01b486 (patch)
tree86ebab262f4ce66fd664b28695dc6e37515f7aaa /tools/lli
parent0eadd73bd78b00379e9f78d1a372bcd28efe855c (diff)
downloadllvm-ca3aa26c202c8442eaa6725ace1a88dffd01b486.tar.gz
llvm-ca3aa26c202c8442eaa6725ace1a88dffd01b486.tar.bz2
llvm-ca3aa26c202c8442eaa6725ace1a88dffd01b486.tar.xz
make statistics and timing info print even if the JIT'd program calls exit
instead of returning from main. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32414 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/lli')
-rw-r--r--tools/lli/lli.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lli/lli.cpp b/tools/lli/lli.cpp
index cce47fb7a2..149536af1b 100644
--- a/tools/lli/lli.cpp
+++ b/tools/lli/lli.cpp
@@ -57,7 +57,7 @@ namespace {
// 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");