summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/Rewrite
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@apple.com>2016-02-11 06:36:35 +0000
committerAkira Hatanaka <ahatanaka@apple.com>2016-02-11 06:36:35 +0000
commit7f550f3dbbb88fc660350301e6dcdce4bfba9be1 (patch)
tree9bfb817968f3cfb142f406608f311b10aa7d4471 /clang/lib/Frontend/Rewrite
parentfcb345f172d669460a4e0d6bdfd109b5bb58cfce (diff)
downloadbcm5719-llvm-7f550f3dbbb88fc660350301e6dcdce4bfba9be1.tar.gz
bcm5719-llvm-7f550f3dbbb88fc660350301e6dcdce4bfba9be1.zip
[Objective-c] Stop attaching section "datacoal_nt" to global variables.
The current macho linker just copies symbols in section datacoal_nt to section data, so it doesn't really matter whether or not section "datacoal_nt" is attached to the global variable. This is a follow-up to r250370, which made changes in llvm to stop putting functions and data in the *coal* sections. rdar://problem/24528611 llvm-svn: 260496
Diffstat (limited to 'clang/lib/Frontend/Rewrite')
-rw-r--r--clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp b/clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp
index b1c3f5bc2b5..91e57753b75 100644
--- a/clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp
+++ b/clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp
@@ -6981,7 +6981,7 @@ void RewriteModernObjC::RewriteObjCProtocolMetaData(ObjCProtocolDecl *PDecl,
Result += "static ";
Result += "struct _protocol_t _OBJC_PROTOCOL_";
Result += PDecl->getNameAsString();
- Result += " __attribute__ ((used, section (\"__DATA,__datacoal_nt,coalesced\"))) = {\n";
+ Result += " __attribute__ ((used)) = {\n";
Result += "\t0,\n"; // id is; is null
Result += "\t\""; Result += PDecl->getNameAsString(); Result += "\",\n";
if (SuperProtocols.size() > 0) {
OpenPOWER on IntegriCloud