[llvm-commits] [llvm-gcc-4.2] r68080 - /llvm-gcc-4.2/trunk/gcc/config/darwin.c
Stuart Hastings
stuart at apple.com
Mon Mar 30 17:39:26 PDT 2009
Author: stuart
Date: Mon Mar 30 19:39:25 2009
New Revision: 68080
URL: http://llvm.org/viewvc/llvm-project?rev=68080&view=rev
Log:
Move ObjC CFString objects to a writable __DATA section under -fwritable-strings.
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=68080&r1=68079&r2=68080&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/config/darwin.c (original)
+++ llvm-gcc-4.2/trunk/gcc/config/darwin.c Mon Mar 30 19:39:25 2009
@@ -1760,7 +1760,11 @@
else
return "__OBJC, __string_object,no_dead_strip";
} else if (!strcmp(IDENTIFIER_POINTER(typename), "__builtin_CFString")) {
- return "__DATA, __cfstring";
+ return
+#ifdef LLVM_CONST_DATA_SECTION
+ (flag_writable_strings) ? LLVM_CONST_DATA_SECTION :
+#endif
+ "__DATA, __cfstring";
} else {
return 0;
}
More information about the llvm-commits
mailing list