Author: Felipe de Azevedo Piovezan Date: 2026-05-13T12:03:45+01:00 New Revision: d805512249a9b2b80382e8a0c5489a90f9b96f5f
URL: https://github.com/llvm/llvm-project/commit/d805512249a9b2b80382e8a0c5489a90f9b96f5f DIFF: https://github.com/llvm/llvm-project/commit/d805512249a9b2b80382e8a0c5489a90f9b96f5f.diff LOG: [lldb][NFCI] Delegate impl of ObjCLanguageRuntime::AddClass (#197410) This is duplicated code. Added: Modified: lldb/source/Plugins/LanguageRuntime/ObjC/ObjCLanguageRuntime.cpp Removed: ################################################################################ diff --git a/lldb/source/Plugins/LanguageRuntime/ObjC/ObjCLanguageRuntime.cpp b/lldb/source/Plugins/LanguageRuntime/ObjC/ObjCLanguageRuntime.cpp index ad163347b14ca..29e29f59996bf 100644 --- a/lldb/source/Plugins/LanguageRuntime/ObjC/ObjCLanguageRuntime.cpp +++ b/lldb/source/Plugins/LanguageRuntime/ObjC/ObjCLanguageRuntime.cpp @@ -52,13 +52,7 @@ bool ObjCLanguageRuntime::IsAllowedRuntimeValue(ConstString name) { bool ObjCLanguageRuntime::AddClass(ObjCISA isa, const ClassDescriptorSP &descriptor_sp, const char *class_name) { - if (isa != 0) { - m_isa_to_descriptor[isa] = descriptor_sp; - // class_name is assumed to be valid - m_hash_to_isa_map.insert(std::make_pair(llvm::djbHash(class_name), isa)); - return true; - } - return false; + return AddClass(isa, descriptor_sp, llvm::djbHash(class_name)); } void ObjCLanguageRuntime::AddToMethodCache(lldb::addr_t class_addr, _______________________________________________ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
