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
This commit is contained in:
Chris Lattner 2006-12-10 19:01:52 +00:00
parent 0eadd73bd7
commit ca3aa26c20

View File

@ -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");