llvm-6502/lib/System/Win32
Mikhail Glushenkov 11d03f690e Remove try/catch(...) from Win32/Signals.inc.
catch(...) is used in Win32/Signals.inc for catching Win32 structured
exceptions, but according to [1], this is wrong.

We can't simply change try/catch to __try/__finally, since this syntax is not
supported by MinGW. We can use __try/__finally on MSVC and __try1/__except1
macros on MinGW [2], but I think that that solution obfuscates the code too
much.

The use of try/catch(...) in Signals.inc makes it impossible to link
MinGW-compiled libSystem with llvm-gcc compiled executables. I propose that we
just remove try/catch(...) from Signals.inc, since the meaning of the code won't
change.

[1] http://members.cox.net/doug_web/eh.htm
[2] http://article.gmane.org/gmane.comp.compilers.llvm.cvs/81315

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117442 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-27 09:09:04 +00:00
..
Alarm.inc
DynamicLibrary.inc
Host.inc
Memory.inc
Mutex.inc
Path.inc Use C++03... 2010-10-20 16:00:45 +00:00
Process.inc
Program.inc Move the declaration SetInformationJobObject() outside of namespace. 2010-09-17 11:14:18 +00:00
RWMutex.inc
Signals.inc Remove try/catch(...) from Win32/Signals.inc. 2010-10-27 09:09:04 +00:00
ThreadLocal.inc ATTRIBUTE_UNUSED has been renamed to LLVM_ATTRIBUTE_UNUSED. 2010-10-25 13:10:03 +00:00
TimeValue.inc
Win32.h