https://github.com/Midar created https://github.com/llvm/llvm-project/pull/88713
The other places all use the underscore. This is just a quick drive-by commit, LMK if more is needed. >From e39e2fc218c588d66937211f98a25eb2acf00a6b Mon Sep 17 00:00:00 2001 From: Jonathan Schleifer <j...@nil.im> Date: Mon, 15 Apr 2024 13:36:05 +0200 Subject: [PATCH] Fix objc_sel_{name,types} missing an underscore The other places all use the underscore. --- clang/lib/CodeGen/CGObjCGNU.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/clang/lib/CodeGen/CGObjCGNU.cpp b/clang/lib/CodeGen/CGObjCGNU.cpp index 4e7f777ba1d916..97df8c5ae18c64 100644 --- a/clang/lib/CodeGen/CGObjCGNU.cpp +++ b/clang/lib/CodeGen/CGObjCGNU.cpp @@ -3873,13 +3873,14 @@ llvm::Function *CGObjCGNU::ModuleInitFunction() { for (auto &untypedSel : allSelectors) { std::string selNameStr = untypedSel.getAsString(); - llvm::Constant *selName = ExportUniqueString(selNameStr, ".objc_sel_name"); + llvm::Constant *selName = ExportUniqueString(selNameStr, + ".objc_sel_name_"); for (TypedSelector &sel : table[untypedSel]) { llvm::Constant *selectorTypeEncoding = NULLPtr; if (!sel.first.empty()) selectorTypeEncoding = - MakeConstantString(sel.first, ".objc_sel_types"); + MakeConstantString(sel.first, ".objc_sel_types_"); auto selStruct = selectors.beginStruct(selStructTy); selStruct.add(selName); _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits