diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2010-02-10 18:49:11 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2010-02-10 18:49:11 +0000 |
| commit | 3241d400c86cf49e243643fdce3a408838754717 (patch) | |
| tree | b94a16b52e5a74d7576a8374fc1769387ca15251 /clang/lib/Frontend | |
| parent | 535fdaf0201487ce2e7b9a1c12643bdf55173b36 (diff) | |
| download | bcm5719-llvm-3241d400c86cf49e243643fdce3a408838754717.tar.gz bcm5719-llvm-3241d400c86cf49e243643fdce3a408838754717.zip | |
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
Diffstat (limited to 'clang/lib/Frontend')
| -rw-r--r-- | clang/lib/Frontend/InitPreprocessor.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Frontend/InitPreprocessor.cpp b/clang/lib/Frontend/InitPreprocessor.cpp index 9aaf1320346..b7ab3d8cd45 100644 --- a/clang/lib/Frontend/InitPreprocessor.cpp +++ b/clang/lib/Frontend/InitPreprocessor.cpp @@ -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"); |

