llvm.org GIT mirror llvm / ebb24b1
[gdb] Update llvm::Optional Reviewers: dblaikie Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D48461 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@335303 91177308-0d34-0410-b5e6-96231b3b80d8 Fangrui Song 2 years ago
1 changed file(s) with 6 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
123123 return ('value', self.member.dereference())
124124
125125 def children(self):
126 if not self.value['hasVal']:
126 if not self.value['Storage']['hasVal']:
127127 return self._iterator('', True)
128 return self._iterator(self.value['storage']['buffer'].address.cast(self.value.type.template_argument(0).pointer()), False)
129
130 def to_string(self):
131 return 'llvm::Optional is %sinitialized' % ('' if self.value['hasVal'] else 'not ')
128 return self._iterator(self.value['Storage']['storage']['buffer'].address.cast(
129 self.value.type.template_argument(0).pointer()), False)
130
131 def to_string(self):
132 return 'llvm::Optional is %sinitialized' % ('' if self.value['Storage']['hasVal'] else 'not ')
132133
133134 class DenseMapPrinter:
134135 "Print a DenseMap"