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)
commit71b1c76cdf349b1cc838336a62374ca8e06db5a0
tree24ddbece1f9e2a5edc635a782348daef04da1fb1
parent16a0de5b4aa25dc54129841b82bdbe2601482fe9
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).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187206 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/Windows/Signals.inc