forked from OSchip/llvm-project
Fix gdb pretty printers to work with Python 3.
Differential Revision: https://reviews.llvm.org/D23202 llvm-svn: 277833
This commit is contained in:
parent
fbde435517
commit
a097a36e2a
|
@ -46,6 +46,8 @@ class SmallVectorPrinter:
|
|||
self.cur = self.cur + 1
|
||||
return '[%d]' % count, cur.dereference()
|
||||
|
||||
__next__ = next
|
||||
|
||||
def __init__(self, val):
|
||||
self.val = val
|
||||
|
||||
|
@ -86,6 +88,8 @@ class ArrayRefPrinter:
|
|||
self.cur = self.cur + 1
|
||||
return '[%d]' % count, cur.dereference()
|
||||
|
||||
__next__ = next
|
||||
|
||||
def __init__(self, val):
|
||||
self.val = val
|
||||
|
||||
|
|
Loading…
Reference in New Issue