about summary refs log tree commit diff stats
path: root/example/expression/export_llvm.py
diff options
context:
space:
mode:
authorserpilliere <serpilliere@users.noreply.github.com>2020-12-24 20:29:39 +0100
committerGitHub <noreply@github.com>2020-12-24 20:29:39 +0100
commit53735e8cd23aa4bc1eed641264de3b9d18692103 (patch)
treed00eca211174dcef32971e271f307721a1217a40 /example/expression/export_llvm.py
parent40d150d0089494d07dd5e10bc7625df41fbf3f68 (diff)
parent73e54732e50b405762c64e0faa032e5ae0fcd1ed (diff)
downloadmiasm-53735e8cd23aa4bc1eed641264de3b9d18692103.tar.gz
miasm-53735e8cd23aa4bc1eed641264de3b9d18692103.zip
Merge pull request #1326 from serpilliere/rename_lifter
Rename lifter
Diffstat (limited to 'example/expression/export_llvm.py')
-rw-r--r--example/expression/export_llvm.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/example/expression/export_llvm.py b/example/expression/export_llvm.py
index a4c65787..74587ffd 100644
--- a/example/expression/export_llvm.py
+++ b/example/expression/export_llvm.py
@@ -17,16 +17,16 @@ loc_db = LocationDB()
 # This part focus on obtaining an IRCFG to transform #
 cont = Container.from_stream(open(args.target, 'rb'), loc_db)
 machine = Machine(args.architecture if args.architecture else cont.arch)
-ir = machine.ir(loc_db)
+lifter = machine.lifter(loc_db)
 dis = machine.dis_engine(cont.bin_stream, loc_db=loc_db)
 asmcfg = dis.dis_multiblock(int(args.addr, 0))
-ircfg = ir.new_ircfg_from_asmcfg(asmcfg)
+ircfg = lifter.new_ircfg_from_asmcfg(asmcfg)
 ircfg.simplify(expr_simp_high_to_explicit)
 ######################################################
 
 # Instantiate a context and the function to fill
 context = LLVMContext_IRCompilation()
-context.ir_arch = ir
+context.lifter = lifter
 
 func = LLVMFunction_IRCompilation(context, name="test")
 func.ret_type = llvm_ir.VoidType()