From f5b70998abb117208d63ec74fc17d793bcdd8d24 Mon Sep 17 00:00:00 2001 From: Ellis Hoag Date: Thu, 11 Sep 2025 12:22:24 -0700 Subject: [PATCH] [ObjC][GenDecl] Emit ObjC properties in __objc_methname section --- lib/IRGen/GenDecl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/IRGen/GenDecl.cpp b/lib/IRGen/GenDecl.cpp index a28d1cac7b37a..71305d2382ce1 100644 --- a/lib/IRGen/GenDecl.cpp +++ b/lib/IRGen/GenDecl.cpp @@ -1065,7 +1065,7 @@ void IRGenModule::SetCStringLiteralSection(llvm::GlobalVariable *GV, GV->setSection("__TEXT,__objc_methtype,cstring_literals"); return; case ObjCLabelType::PropertyName: - GV->setSection("__TEXT,__cstring,cstring_literals"); + GV->setSection("__TEXT,__objc_methname,cstring_literals"); return; } case llvm::Triple::ELF: