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
This commit is contained in:
Fariborz Jahanian
2009-05-22 20:17:16 +00:00
parent 162af638a9
commit a4404f21d1
6 changed files with 41 additions and 7 deletions

View File

@@ -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__");