Driver: Objective-C should respect -fno-exceptions
authorDavid Majnemer <david.majnemer@gmail.com>
Fri, 5 Dec 2014 08:56:55 +0000 (08:56 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Fri, 5 Dec 2014 08:56:55 +0000 (08:56 +0000)
commit153c3948f15f8a7b3e603f240fc2cbb93d8ddfb7
treeebdf89f5ee2e320a88ed8658321ae1fa40b22fe8
parentc96e95c157f1f5a5755944804731a8ab07711672
Driver: Objective-C should respect -fno-exceptions

Clang attempted to replicate a GCC bug: -fobjc-exceptions forces
-fexceptions to be enabled.  However, this has unintended effects and
other awkard side effects that Clang doesn't "correctly" ape (e.g. it's
impossible to turn off C++ exceptions in ObjC++ mode).

Instead, -f[no]objc-exceptions and -f[no]cxx-exceptions now have an
identical relationship with -f[no]exceptions.

llvm-svn: 223455
clang/lib/Driver/Tools.cpp
clang/test/Driver/exceptions.m [deleted file]
clang/test/Driver/exceptions.mm [new file with mode: 0644]
clang/test/Driver/rewrite-legacy-objc.m