[Lldb-commits] [lldb] r327445 - [DataFormatter] Remove dead code for the NSDictionary formatter.

Davide Italiano via lldb-commits lldb-commits at lists.llvm.org
Tue Mar 13 13:26:39 PDT 2018


Author: davide
Date: Tue Mar 13 13:26:38 2018
New Revision: 327445

URL: http://llvm.org/viewvc/llvm-project?rev=327445&view=rev
Log:
[DataFormatter] Remove dead code for the NSDictionary formatter.

I'm going to make changes in this area soon, so I figured I
could clean things a bit while I was around.

Modified:
    lldb/trunk/source/Plugins/Language/ObjC/NSDictionary.cpp

Modified: lldb/trunk/source/Plugins/Language/ObjC/NSDictionary.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Language/ObjC/NSDictionary.cpp?rev=327445&r1=327444&r2=327445&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Language/ObjC/NSDictionary.cpp (original)
+++ lldb/trunk/source/Plugins/Language/ObjC/NSDictionary.cpp Tue Mar 13 13:26:38 2018
@@ -424,16 +424,6 @@ bool lldb_private::formatters::NSDiction
   } else if (class_name == g_Dictionary1) {
     value = 1;
   }
-  /*else if (!strcmp(class_name,"__NSCFDictionary"))
-   {
-   Status error;
-   value = process_sp->ReadUnsignedIntegerFromMemory(valobj_addr + (is_64bit ?
-   20 : 12), 4, 0, error);
-   if (error.Fail())
-   return false;
-   if (is_64bit)
-   value &= ~0x0f1f000000000000UL;
-   }*/
   else {
     auto &map(NSDictionary_Additionals::GetAdditionalSummaries());
     for (auto &candidate : map) {




More information about the lldb-commits mailing list