llvm_shutdown could write something to outs or errs,
so we need to flush them after calling llvm_shutdown.
llvm-svn: 286548
}
void elf::exitLld(int Val) {
- outs().flush();
- errs().flush();
-
// Dealloc/destroy ManagedStatic variables before calling
// _exit(). In a non-LTO build, this is a nop. In an LTO
// build allows us to get the output of -time-passes.
llvm_shutdown();
+ outs().flush();
+ errs().flush();
_exit(Val);
}