[PATCH] D25997: Call _exit
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 26 10:10:30 PDT 2016
ruiu added inline comments.
================
Comment at: ELF/Driver.cpp:55
- Driver->main(Args);
+ Driver->main(Args, CanExitEarly);
InputFile::freePool();
----------------
Instead of propagating CanExitEarly, you can set Config->ExitEarly before calling this function.
================
Comment at: ELF/Writer.cpp:326
+ errs().flush();
+ _exit(0);
+ }
----------------
Is even exit() expensive? If you use exit() instead of _exit(), you don't need to flush the streams.
https://reviews.llvm.org/D25997
More information about the llvm-commits
mailing list