Fix gdb pretty printers to work with Python 3.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@277833 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Igor Kudrin 2016-08-05 16:48:31 +00:00
parent 3c7b828443
commit 9c9f23ffe5

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