]> granicus.if.org Git - clang/commit
Only predefine the __EXCEPTIONS macro if C++ exceptions are turned on.
authorDouglas Gregor <dgregor@apple.com>
Mon, 12 Sep 2011 15:17:19 +0000 (15:17 +0000)
committerDouglas Gregor <dgregor@apple.com>
Mon, 12 Sep 2011 15:17:19 +0000 (15:17 +0000)
commiteced60c185c92a34953090b98d8458fb2df9dc81
treea6645024d84563cf3b1ab3c50db9c76098bd49bc
parentcb4d7c202e74783d9c820f155ae27605aa9f5c16
Only predefine the __EXCEPTIONS macro if C++ exceptions are turned on.
Only predefine the OBJC_ZEROCOST_EXCEPTIONS macro if Objective-C
exceptions are turned on. Fixes PR10910.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139496 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Frontend/InitPreprocessor.cpp
test/Preprocessor/init.c
test/Preprocessor/predefined-exceptions.m [new file with mode: 0644]