summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/cl-eh.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [clang-cl] /EHc should not have an effect on /EHaDavid Majnemer2016-02-291-0/+5
| | | | | | This matches behavior with MSVC. llvm-svn: 262197
* [clang-cl] Make /EHs turn on C++ EH once againReid Kleckner2015-10-081-8/+6
| | | | | | | | | | | C++ exceptions are still off by default, which is similar to how C++ cleanups are off by default in MSVC. If you use clang instead of clang-cl, exceptions are also still off by default. In the future, when C++ EH is proven to be stable, we may flip the default for that driver to be consistent with other platforms. llvm-svn: 249704
* Erase REQUIRES: shell-preserves-root from more tests, see r242312.Yaron Keren2015-07-151-3/+0
| | | | llvm-svn: 242321
* [clang-cl] Disable C++ exceptions a different wayReid Kleckner2015-07-141-10/+8
| | | | | | | | | | Rather than making -fexceptions a core option that enables C++ EH in clang-cl, users can use the '-Xclang -fexceptions -Xclang -fcxx-exceptions' flag set. We weren't going to expose -fexceptions in clang-cl in the long run, so this way we don't add and then remove a flag. llvm-svn: 242176
* Disable C++ EH by default for clang-cl and MSVC environmentsReid Kleckner2015-07-101-5/+9
| | | | | | | | | We don't need any more bug reports from users telling us that MSVC-style C++ exceptions are broken. Developers and adventurous users can still test the existing functionality by passing along -fexceptions to either clang or clang-cl. llvm-svn: 241952
* Re-land r228258 and make clang-cl's /EHs- disable -fexceptions againReid Kleckner2015-02-051-2/+2
| | | | | | | | | | | After r228258, Clang started emitting C++ EH IR that LLVM wasn't ready to deal with, even when exceptions were disabled with /EHs-. This time, make /EHs- turn off -fexceptions while still emitting exceptional constructs in functions using __try. Since Sema rejects C++ exception handling constructs before CodeGen, landingpads should only appear in such functions as the result of a __try. llvm-svn: 228329
* clang-cl: Enable -fexceptions but not -fcxx-exceptions by defaultReid Kleckner2015-01-301-2/+7
| | | | | | This enables proper IRgen of SEH constructs. llvm-svn: 227528
* clang-cl: Map /EHs- to -fno-exceptionsReid Kleckner2014-06-271-0/+24
This isn't 100% compatible with MSVC, but it's close enough. MSVC's /EH flag doesn't really control exceptions so much as how to clean up after an exception is thrown. The upshot is that cl.exe /EHs- will compile try, throw, and catch statements with a warning, but clang-cl will reject such constructs with a hard error. We can't compile such EH constructs anyway, but this may matter to consumers of the AST. Reviewers: hans Differential Revision: http://reviews.llvm.org/D4317 llvm-svn: 211909
OpenPOWER on IntegriCloud