[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:
Philip Pfaffe 2018-07-09 18:51:50 +00:00
parent 3dbde8a778
commit 0566f2352a
1 changed files with 4 additions and 0 deletions

View File

@ -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