[Lldb-commits] [lldb] b1c020b - [lldb] Stop looking for libarclite symbol (#197848)

via lldb-commits lldb-commits at lists.llvm.org
Thu May 14 17:53:11 PDT 2026


Author: Jonas Devlieghere
Date: 2026-05-15T00:53:06Z
New Revision: b1c020b8f987d101d42920621b9922e626e58f1b

URL: https://github.com/llvm/llvm-project/commit/b1c020b8f987d101d42920621b9922e626e58f1b
DIFF: https://github.com/llvm/llvm-project/commit/b1c020b8f987d101d42920621b9922e626e58f1b.diff

LOG: [lldb] Stop looking for libarclite symbol (#197848)

libarclite is a helper library used for Automatic Reference Counting
(ARC) support on older operating systems. It hasn't been necessary since
Mac OS X Mountain Lion, released in 2012.

Added: 
    

Modified: 
    lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntime.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntime.cpp b/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntime.cpp
index 6c4c1b6d877c8..adb9da795f699 100644
--- a/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntime.cpp
+++ b/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntime.cpp
@@ -459,31 +459,21 @@ bool AppleObjCRuntime::CalculateHasNewLiteralsAndIndexing() {
   if (!m_process)
     return false;
 
-  Target &target = m_process->GetTarget();
-
   static ConstString s_method_signature(
       "-[NSDictionary objectForKeyedSubscript:]");
-  static ConstString s_arclite_method_signature(
-      "__arclite_objectForKeyedSubscript");
   // NSDictionary is toll-free bridged with CFDictionary, so the
   // implementation lives in CoreFoundation, not Foundation.
   static ModuleSpec corefoundation_module_spec(FileSpec("CoreFoundation"));
 
+  Target &target = m_process->GetTarget();
   if (ModuleSP corefoundation_module_sp =
           target.GetImages().FindFirstModule(corefoundation_module_spec)) {
-    const Symbol *method_symbol =
-        corefoundation_module_sp->FindFirstSymbolWithNameAndType(
-            s_method_signature, eSymbolTypeCode);
-    if (method_symbol)
+    if (corefoundation_module_sp->FindFirstSymbolWithNameAndType(
+            s_method_signature, eSymbolTypeCode))
       return true;
   }
 
-  // The arclite variant is a static library linked into the main executable,
-  // not part of CoreFoundation, so search all images.
-  SymbolContextList sc_list;
-  target.GetImages().FindSymbolsWithNameAndType(s_arclite_method_signature,
-                                                eSymbolTypeCode, sc_list);
-  return !sc_list.IsEmpty();
+  return false;
 }
 
 lldb::SearchFilterSP AppleObjCRuntime::CreateExceptionSearchFilter() {


        


More information about the lldb-commits mailing list