[DataFormatters] Implement summary for __NSDictionary0.
authorDavide Italiano <davide@freebsd.org>
Wed, 14 Mar 2018 23:09:36 +0000 (23:09 +0000)
committerDavide Italiano <davide@freebsd.org>
Wed, 14 Mar 2018 23:09:36 +0000 (23:09 +0000)
commit8f2e86da36269ec23bb22ef93b82e76e5d22166a
tree9fa711dad63e1af5096f867ffd83ae927b56c89e
parent5df2db121637c1c3234ed8619cc7f77cfe6531da
[DataFormatters] Implement summary for __NSDictionary0.

Before the patch:

(lldb) frame var emptyDictionary
(__NSDictionary0 *) emptyDictionary = 0x0000000100304420

After:

(lldb) frame var emptyDictionary
(__NSDictionary0 *) emptyDictionary = 0x0000000100304420 0 key/value pairs

There's nothing much else we can do, as this is always empty by
definition.

<rdar://problem/34806516>

llvm-svn: 327587
lldb/lit/DataFormatters/Inputs/NSDict.commands [new file with mode: 0644]
lldb/lit/DataFormatters/Inputs/NSDict.m [new file with mode: 0644]
lldb/lit/DataFormatters/TestEmptyDictionary.test [new file with mode: 0644]
lldb/lit/DataFormatters/lit.local.cfg [new file with mode: 0644]
lldb/source/Plugins/Language/ObjC/NSDictionary.cpp