From: Jonas Devlieghere Date: Fri, 26 Mar 2021 22:27:19 +0000 (-0700) Subject: [lldb] Remove UpdateISAToDescriptorMapFromMemory X-Git-Tag: llvmorg-14-init~11132 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=24baaad94539553b00aceca8be5420cab943167e;p=platform%2Fupstream%2Fllvm.git [lldb] Remove UpdateISAToDescriptorMapFromMemory Remove UpdateISAToDescriptorMapFromMemory because it's dead code. --- diff --git a/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp b/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp index 225f1af090ea..31ddf83ba988 100644 --- a/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp +++ b/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp @@ -1947,42 +1947,6 @@ AppleObjCRuntimeV2::UpdateISAToDescriptorMapSharedCache() { return DescriptorMapUpdateResult(success, num_class_infos); } -bool AppleObjCRuntimeV2::UpdateISAToDescriptorMapFromMemory( - RemoteNXMapTable &hash_table) { - Log *log(GetLogIfAnyCategoriesSet(LIBLLDB_LOG_PROCESS | LIBLLDB_LOG_TYPES)); - - Process *process = GetProcess(); - - if (process == nullptr) - return false; - - uint32_t num_map_table_isas = 0; - - ModuleSP objc_module_sp(GetObjCModule()); - - if (objc_module_sp) { - for (RemoteNXMapTable::element elt : hash_table) { - ++num_map_table_isas; - - if (ISAIsCached(elt.second)) - continue; - - ClassDescriptorSP descriptor_sp = ClassDescriptorSP( - new ClassDescriptorV2(*this, elt.second, elt.first.AsCString())); - - if (log && log->GetVerbose()) - LLDB_LOGF(log, - "AppleObjCRuntimeV2 added (ObjCISA)0x%" PRIx64 - " (%s) from dynamic table to isa->descriptor cache", - elt.second, elt.first.AsCString()); - - AddClass(elt.second, descriptor_sp, elt.first.AsCString()); - } - } - - return num_map_table_isas > 0; -} - lldb::addr_t AppleObjCRuntimeV2::GetSharedCacheReadOnlyAddress() { Process *process = GetProcess(); diff --git a/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.h b/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.h index c51b1e210348..b0c1584dd369 100644 --- a/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.h +++ b/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.h @@ -375,8 +375,6 @@ private: lldb::addr_t GetISAHashTablePointer(); - bool UpdateISAToDescriptorMapFromMemory(RemoteNXMapTable &hash_table); - /// Update the generation count of realized classes. This is not an exact /// count but rather a value that is incremented when new classes are realized /// or destroyed. Unlike the count in gdb_objc_realized_classes, it will