use (llvm 3.4) built in StringRefMemoryObject instead of BytesMemoryObject

This commit is contained in:
anthony cantor 2013-08-16 14:58:27 -06:00 • committed by Siu Kwan Lam
commit bc02b3d90a
5 changed files with 23 additions and 43 deletions

View file

@ -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()):