[llvm-commits] [llvm-gcc-4.2] r46322 - /llvm-gcc-4.2/trunk/gcc/config/darwin.c
Dale Johannesen
dalej at apple.com
Thu Jan 24 12:54:56 PST 2008
Author: johannes
Date: Thu Jan 24 14:54:56 2008
New Revision: 46322
URL: http://llvm.org/viewvc/llvm-project?rev=46322&view=rev
Log:
Move some data into the correct sections for ObjC ABI V2.
Modified:
llvm-gcc-4.2/trunk/gcc/config/darwin.c
Modified: llvm-gcc-4.2/trunk/gcc/config/darwin.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/config/darwin.c?rev=46322&r1=46321&r2=46322&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/config/darwin.c (original)
+++ llvm-gcc-4.2/trunk/gcc/config/darwin.c Thu Jan 24 14:54:56 2008
@@ -1563,9 +1563,13 @@
else if (!strncmp (name, "CLASS_REFERENCES", 16))
return "__OBJC,__cls_refs,literal_pointers,no_dead_strip";
else if (!strncmp (name, "CLASS_", 6))
- return "__OBJC,__class,regular,no_dead_strip";
+ return (flag_objc_abi == 1 ?
+ "__OBJC,__class,regular,no_dead_strip" :
+ "__DATA,__data");
else if (!strncmp (name, "METACLASS_", 10))
- return "__OBJC,__meta_class,regular,no_dead_strip";
+ return (flag_objc_abi == 1 ?
+ "__OBJC,__meta_class,regular,no_dead_strip" :
+ "__DATA,__data");
else if (!strncmp (name, "CATEGORY_", 9))
return "__OBJC,__category,regular,no_dead_strip";
else if (!strncmp (name, "SELECTOR_REFERENCES", 19))
More information about the llvm-commits
mailing list