llvm.mc.Disassembler.decode now yields the byte sequence which generated the instruction
added custom method to extra.h to return a PyBytes object from the bytes read from MemoryObject.readBytes. also moved the generic methods from StringRefMemoryObject up to MemoryObject
This commit is contained in:
parent
1d735e49d2
commit
43f7330fda
5 changed files with 78 additions and 19 deletions
|
|
@ -659,7 +659,7 @@ def do_llvm_mc():
|
|||
tm = TargetMachine.x86()
|
||||
dasm = mc.Disassembler(tm)
|
||||
|
||||
for (offset, instr) in dasm.decode("c3", 0):
|
||||
for (offset, data, instr) in dasm.decode("c3", 0):
|
||||
pass
|
||||
|
||||
def main():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue