use (llvm 3.4) built in StringRefMemoryObject instead of BytesMemoryObject
This commit is contained in:
parent
aa0ee9b6a6
commit
bc02b3d90a
5 changed files with 23 additions and 43 deletions
|
|
@ -93,7 +93,7 @@ class Disassembler:
|
|||
#decode some bytes into instructions. yields each instruction
|
||||
#as it is decoded.
|
||||
def decode(self, bs):
|
||||
code = api.llvm.BytesMemoryObject.new(bs)
|
||||
code = api.llvm.StringRefMemoryObject.new(bs, 0)
|
||||
idx = code.getBase()
|
||||
|
||||
while(idx < code.getExtent()):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue