about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--miasm2/jitter/llvmconvert.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/miasm2/jitter/llvmconvert.py b/miasm2/jitter/llvmconvert.py
index 7c95688d..49c696e9 100644
--- a/miasm2/jitter/llvmconvert.py
+++ b/miasm2/jitter/llvmconvert.py
@@ -1242,8 +1242,9 @@ class LLVMFunction():
 
     def gen_pre_code(self, instr_attrib):
         if instr_attrib.log_mn:
+            loc_db = self.llvm_context.ir_arch.loc_db
             self.printf("%.8X %s\n" % (instr_attrib.instr.offset,
-                                       instr_attrib.instr))
+                                       instr_attrib.instr.to_string(loc_db)))
 
     def gen_post_code(self, attributes):
         if attributes.log_regs: