[Win32] Catch exceptions (eg. segfault) on waiting for invoked clang from the driver.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Tue, 29 Nov 2011 07:47:04 +0000 (07:47 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Tue, 29 Nov 2011 07:47:04 +0000 (07:47 +0000)
commit5d2f8c31556b6a5ce29d2cad314bc48af879c5b3
treea3a865170b8be82994a4632229756c11461041d4
parentebb57cc44ad02e8c096ad863df6dd6b7e5b0b789
[Win32] Catch exceptions (eg. segfault) on waiting for invoked clang from the driver.

clang/lib/Driver/Driver.cpp: Don't pass through negative exit status, or parent would be confused.

llvm::sys::Program::Wait(): Suppose 0x8000XXXX and 0xC000XXXX as abnormal exit code and pass it as negative value.

Win32 Exception Handler: Exit with ExceptionCode on an unhandle exception.

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