diff options
author | Chris Lattner <sabre@nondot.org> | 2006-12-10 19:01:52 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-12-10 19:01:52 +0000 |
commit | 6161452b67134a1913e164519f6bac6493771e2d (patch) | |
tree | e9ad8e746e4b11e8a75b2a791c9596d4b2897d43 | |
parent | 6af2220815ecd52e496a9ee87be6f6a661eb07cc (diff) | |
download | bcm5719-llvm-6161452b67134a1913e164519f6bac6493771e2d.tar.gz bcm5719-llvm-6161452b67134a1913e164519f6bac6493771e2d.zip |
make statistics and timing info print even if the JIT'd program calls exit
instead of returning from main.
llvm-svn: 32414
-rw-r--r-- | llvm/tools/lli/lli.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/lli/lli.cpp b/llvm/tools/lli/lli.cpp index cce47fb7a2e..149536af1b6 100644 --- a/llvm/tools/lli/lli.cpp +++ b/llvm/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"); |