about summary refs log tree commit diff stats
path: root/miasm2/jitter/llvmconvert.py
diff options
context:
space:
mode:
authorserpilliere <serpilliere@users.noreply.github.com>2018-07-17 07:36:41 +0200
committerGitHub <noreply@github.com>2018-07-17 07:36:41 +0200
commit85904f4c55e171dec36aadc14f78113d169f6edc (patch)
tree5f8bcb790d9586db598f72b514f175fb0b6fbabd /miasm2/jitter/llvmconvert.py
parent35074d6565d53f6f655af1a101e51ace1015290b (diff)
parentef008bba8b0f011bb3777ac3f8301ea4d7990d73 (diff)
downloadmiasm-85904f4c55e171dec36aadc14f78113d169f6edc.tar.gz
miasm-85904f4c55e171dec36aadc14f78113d169f6edc.zip
Merge pull request #801 from commial/fix/jitter-fixes
Fix/jitter fixes
Diffstat (limited to '')
-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: