[cfe-commits] r63871 - /cfe/trunk/lib/CodeGen/CGObjCMac.cpp

Fariborz Jahanian fjahanian at apple.com
Thu Feb 5 10:00:27 PST 2009


Author: fjahanian
Date: Thu Feb  5 12:00:27 2009
New Revision: 63871

URL: http://llvm.org/viewvc/llvm-project?rev=63871&view=rev
Log:
#ifdef'out out objc2 API selection which is not done in gcc (unlike
the documentation to the contrary).

Modified:
    cfe/trunk/lib/CodeGen/CGObjCMac.cpp

Modified: cfe/trunk/lib/CodeGen/CGObjCMac.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGObjCMac.cpp?rev=63871&r1=63870&r2=63871&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CGObjCMac.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGObjCMac.cpp Thu Feb  5 12:00:27 2009
@@ -4301,13 +4301,17 @@
   llvm::Constant *Fn;
   std::string Name("\01l_");
   if (CGM.ReturnTypeUsesSret(FnInfo)) {
+#if 0
+    // unlike what is documented. gcc never generates this API!!
     if (Receiver->getType() == ObjCTypes.ObjectPtrTy) {
       Fn = ObjCTypes.MessageSendIdStretFixupFn;
       // FIXME. Is there a better way of getting these names.
       // They are available in RuntimeFunctions vector pair.
       Name += "objc_msgSendId_stret_fixup";
     }
-    else {
+    else
+#endif
+    {
       Fn = ObjCTypes.MessageSendStretFixupFn;
       Name += "objc_msgSend_stret_fixup";
     }
@@ -4317,11 +4321,15 @@
     Name += "objc_msgSend_fpret_fixup";
   }
   else {
+#if 0
+// unlike what is documented. gcc never generates this API!!
     if (Receiver->getType() == ObjCTypes.ObjectPtrTy) {
       Fn = ObjCTypes.MessageSendIdFixupFn;
       Name += "objc_msgSendId_fixup";
     }
-    else {
+    else 
+#endif
+    {
       Fn = ObjCTypes.MessageSendFixupFn;
       Name += "objc_msgSend_fixup";
     }





More information about the cfe-commits mailing list