From: Fariborz Jahanian Date: Sat, 31 Jan 2009 01:07:39 +0000 (+0000) Subject: class meta-data belong to __objc_data section (in objc2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dd0db2a60b65e7eaa852b77c8b9f607640eb50b9;p=clang class meta-data belong to __objc_data section (in objc2 nonfragile abi). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63461 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGObjCMac.cpp b/lib/CodeGen/CGObjCMac.cpp index 7f58570900..6c35041b97 100644 --- a/lib/CodeGen/CGObjCMac.cpp +++ b/lib/CodeGen/CGObjCMac.cpp @@ -3384,7 +3384,7 @@ llvm::GlobalVariable * CGObjCNonFragileABIMac::BuildClassMetaData( Init, ClassName, &CGM.getModule()); - GV->setSection("__DATA, __objc_const"); + GV->setSection("__DATA, __objc_data"); GV->setAlignment(GetPointerAlign()); if (HiddenVisibility) GV->setVisibility(llvm::GlobalValue::HiddenVisibility);