diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-07-26 14:55:36 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-07-26 14:55:36 +0000 |
commit | 05e53fc0c1c76d3bbe9daaf221867f13a7a8cc25 (patch) | |
tree | 144d717589046f633eb561039ff74a2b0b35e2cc /llvm/lib/Support/Unix/Program.inc | |
parent | 2012b82625c393b379b2b6d17b7d4c6790477df2 (diff) | |
download | bcm5719-llvm-05e53fc0c1c76d3bbe9daaf221867f13a7a8cc25.tar.gz bcm5719-llvm-05e53fc0c1c76d3bbe9daaf221867f13a7a8cc25.zip |
Improve our error handling on windows.
* Remove LLVM_ENABLE_CRT_REPORT. LLVM_DISABLE_CRASH_REPORT made it redundant.
* set Return to 1, so that we get a stack trace on failure.
* don't call _exit, so that we get a negative exit value and "not --crash"
correctly differentiates crashes and regular errors.
This is a bit experimental since the documentation on this interface is sparse.
It doesn't bring up a dialog on my windows setup, but feel free to revert
if it causes problem for your setup (and let me know what it is so that I
can try to fix this patch).
llvm-svn: 187206
Diffstat (limited to 'llvm/lib/Support/Unix/Program.inc')
0 files changed, 0 insertions, 0 deletions