Fix gdb pretty printers to work with Python 3.

Differential Revision: https://reviews.llvm.org/D23202

llvm-svn: 277833
This commit is contained in:
Igor Kudrin 2016-08-05 16:48:31 +00:00
parent fbde435517
commit a097a36e2a

View File

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