forked from OSchip/llvm-project
[Utils] Fix gdb pretty printers to work with Python 3.
Reiterate D23202 for container printers added after the change landed. Differential Revision: https://reviews.llvm.org/D46578 llvm-svn: 336580
This commit is contained in:
parent
3dbde8a778
commit
0566f2352a
|
@ -102,6 +102,8 @@ class ArrayRefPrinter:
|
|||
def __init__(self, val):
|
||||
self.val = val
|
||||
|
||||
__next__ = next
|
||||
|
||||
def children(self):
|
||||
data = self.val['Data']
|
||||
return self._iterator(data, data + self.val['Length'])
|
||||
|
@ -198,6 +200,8 @@ class DenseMapPrinter:
|
|||
self.first = False
|
||||
return 'x', v
|
||||
|
||||
__next__ = next
|
||||
|
||||
def __init__(self, val):
|
||||
self.val = val
|
||||
|
||||
|
|
Loading…
Reference in New Issue