diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2009-05-22 20:17:16 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2009-05-22 20:17:16 +0000 |
commit | a4404f21d101fc738e1f99e38d0f83260470464a (patch) | |
tree | fcfa4d3f40752b2a37a08a44b7cfaf67c1fd508c /clang/lib/Frontend/InitPreprocessor.cpp | |
parent | 162af638a9dd6fbdc7091e61a9ae43415285f401 (diff) | |
download | bcm5719-llvm-a4404f21d101fc738e1f99e38d0f83260470464a.tar.gz bcm5719-llvm-a4404f21d101fc738e1f99e38d0f83260470464a.zip |
This patch adds support for sender-aware dispatch in Objective-C for the GNU runtime, when
compiled with -fobjc-sender-dependent-dispatch. This is used in AOP, COP, implementing object
planes, and a few other things.
Patch by David Chisnall.
llvm-svn: 72275
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
-rw-r--r-- | clang/lib/Frontend/InitPreprocessor.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Frontend/InitPreprocessor.cpp b/clang/lib/Frontend/InitPreprocessor.cpp index 1ad9d5c8d3b..8f4cdbc5f5d 100644 --- a/clang/lib/Frontend/InitPreprocessor.cpp +++ b/clang/lib/Frontend/InitPreprocessor.cpp @@ -280,6 +280,9 @@ static void InitializePredefinedMacros(const TargetInfo &TI, if (LangOpts.ObjC2) DefineBuiltinMacro(Buf, "OBJC_NEW_PROPERTIES"); + if (LangOpts.ObjCSenderDispatch) + DefineBuiltinMacro(Buf, "__OBJC_SENDER_AWARE_DISPATCH__"); + if (LangOpts.PascalStrings) DefineBuiltinMacro(Buf, "__PASCAL_STRINGS__"); |