mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-28 06:17:32 +00:00
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…
x
Reference in New Issue
Block a user