make statistics and timing info print even if the JIT'd program calls exit

instead of returning from main.

llvm-svn: 32414
This commit is contained in:
Chris Lattner 2006-12-10 19:01:52 +00:00
parent 3fa703d088
commit 7a39524d63

View File

@ -57,7 +57,7 @@ namespace {
// main Driver function // main Driver function
// //
int main(int argc, char **argv, char * const *envp) { 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 { try {
cl::ParseCommandLineOptions(argc, argv, cl::ParseCommandLineOptions(argc, argv,
" llvm interpreter & dynamic compiler\n"); " llvm interpreter & dynamic compiler\n");