diff options
author | Reid Kleckner <reid@kleckner.net> | 2015-02-05 18:56:03 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2015-02-05 18:56:03 +0000 |
commit | deeddeced312a21b8454336cfab9fe2b58863cf8 (patch) | |
tree | 87170d3e4cedf4bc76f9916cbdd5d74f33e676e1 /clang/test/Driver/cl-eh.cpp | |
parent | c9dd02066cc0528da28bd887e8dbdb3bd9c68165 (diff) | |
download | bcm5719-llvm-deeddeced312a21b8454336cfab9fe2b58863cf8.tar.gz bcm5719-llvm-deeddeced312a21b8454336cfab9fe2b58863cf8.zip |
Re-land r228258 and make clang-cl's /EHs- disable -fexceptions again
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
Diffstat (limited to 'clang/test/Driver/cl-eh.cpp')
-rw-r--r-- | clang/test/Driver/cl-eh.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Driver/cl-eh.cpp b/clang/test/Driver/cl-eh.cpp index c9cb90350b2..a71491edeaf 100644 --- a/clang/test/Driver/cl-eh.cpp +++ b/clang/test/Driver/cl-eh.cpp @@ -10,11 +10,11 @@ // RUN: %clang_cl /c /EHs-c- -### -- %s 2>&1 | FileCheck -check-prefix=EHs_c_ %s // EHs_c_-NOT: "-fcxx-exceptions" -// EHs_c_: "-fexceptions" +// EHs_c_-NOT: "-fexceptions" // RUN: %clang_cl /c /EHs- /EHc- -### -- %s 2>&1 | FileCheck -check-prefix=EHs_EHc_ %s // EHs_EHc_-NOT: "-fcxx-exceptions" -// EHs_EHc_: "-fexceptions" +// EHs_EHc_-NOT: "-fexceptions" // RUN: %clang_cl /c /EHs- /EHs -### -- %s 2>&1 | FileCheck -check-prefix=EHs_EHs %s // EHs_EHs: "-fcxx-exceptions" |