[RISCV] Add addu.w and slliu.w test that uses getelementptr with zero extended indices.
[lldb.git] / lldb / examples / summaries / objc.py
1 # Summaries for common ObjC types that require Python scripting
2 # to be generated fit into this file
3
4
5 def BOOL_SummaryProvider(valobj, dict):
6     if not (valobj.IsValid()):
7         return "<invalid>"
8     if valobj.GetValueAsUnsigned() == 0:
9         return "NO"
10     else:
11         return "YES"
12
13
14 def BOOLRef_SummaryProvider(valobj, dict):
15     return BOOL_SummaryProvider(valobj.GetChildAtIndex(0), dict)
16
17
18 def BOOLPtr_SummaryProvider(valobj, dict):
19     return BOOL_SummaryProvider(valobj.Dereference(), dict)