Improve our error handling on windows.
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 26 Jul 2013 14:55:36 +0000 (14:55 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 26 Jul 2013 14:55:36 +0000 (14:55 +0000)
commit05e53fc0c1c76d3bbe9daaf221867f13a7a8cc25
tree144d717589046f633eb561039ff74a2b0b35e2cc
parent2012b82625c393b379b2b6d17b7d4c6790477df2
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
llvm/lib/Support/Windows/Signals.inc