mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-27 21:50:40 +00:00
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:
parent
3c7b828443
commit
9c9f23ffe5
@ -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
Block a user