Switch to using -fsjlj-exceptions instead of hard-coding it. Notably, this fixes

calls to the UnwindResumeOrRethrow function for C++/Obj-C exception handling,
for Darwin ARM.

llvm-svn: 95787
This commit is contained in:
Daniel Dunbar
2010-02-10 18:49:11 +00:00
parent 535fdaf020
commit 3241d400c8
9 changed files with 33 additions and 9 deletions

View File

@@ -279,6 +279,8 @@ static void InitializePredefinedMacros(const TargetInfo &TI,
if (LangOpts.Exceptions)
Builder.defineMacro("__EXCEPTIONS");
if (LangOpts.SjLjExceptions)
Builder.defineMacro("__USING_SJLJ_EXCEPTIONS__");
if (LangOpts.CPlusPlus) {
Builder.defineMacro("__DEPRECATED");