diff options
author | Reid Kleckner <reid@kleckner.net> | 2014-06-27 17:02:02 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2014-06-27 17:02:02 +0000 |
commit | c542d379958d1e44744aa9474f79c6732264121d (patch) | |
tree | 4c36fa226ce237afbb60828ae990a548b435f382 /clang/lib/Basic/SourceManager.cpp | |
parent | 4632e1eec1f2e5225a8ba37fe05d57e74c4a8001 (diff) | |
download | llvm-c542d379958d1e44744aa9474f79c6732264121d.zip llvm-c542d379958d1e44744aa9474f79c6732264121d.tar.gz llvm-c542d379958d1e44744aa9474f79c6732264121d.tar.bz2 |
clang-cl: Map /EHs- to -fno-exceptions
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
Diffstat (limited to 'clang/lib/Basic/SourceManager.cpp')
0 files changed, 0 insertions, 0 deletions