diff options
| author | Ajax <commial@gmail.com> | 2018-07-16 15:43:00 +0200 |
|---|---|---|
| committer | Ajax <commial@gmail.com> | 2018-07-16 17:04:34 +0200 |
| commit | ef008bba8b0f011bb3777ac3f8301ea4d7990d73 (patch) | |
| tree | 5f8bcb790d9586db598f72b514f175fb0b6fbabd | |
| parent | b106d50f147376d41b70cba0a5a89553a0cf1340 (diff) | |
| download | miasm-ef008bba8b0f011bb3777ac3f8301ea4d7990d73.tar.gz miasm-ef008bba8b0f011bb3777ac3f8301ea4d7990d73.zip | |
LLVM: use pretty print for instr logging
| -rw-r--r-- | miasm2/jitter/llvmconvert.py | 3 |
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: |