From e334e25a848bf8311ff3cd0c00d2c5f471e007f5 Mon Sep 17 00:00:00 2001 From: Ajax Date: Fri, 22 Jun 2018 16:10:51 +0200 Subject: Jitters: use loc_key instead of names or offset for basic block labeling --- miasm2/jitter/jitcore_llvm.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'miasm2/jitter/jitcore_llvm.py') diff --git a/miasm2/jitter/jitcore_llvm.py b/miasm2/jitter/jitcore_llvm.py index 5152cf9e..9b0baae5 100644 --- a/miasm2/jitter/jitcore_llvm.py +++ b/miasm2/jitter/jitcore_llvm.py @@ -8,7 +8,6 @@ import Jitllvm class JitCore_LLVM(jitcore.JitCore): - "JiT management, using LLVM as backend" # Architecture dependant libraries @@ -84,7 +83,7 @@ class JitCore_LLVM(jitcore.JitCore): if not os.access(fname_out, os.R_OK): # Build a function in the context - func = LLVMFunction(self.context, block.loc_key) + func = LLVMFunction(self.context, self.FUNCNAME) # Set log level func.log_regs = self.log_regs @@ -115,7 +114,7 @@ class JitCore_LLVM(jitcore.JitCore): else: # The cache file exists: function can be loaded from cache - ptr = self.context.get_ptr_from_cache(fname_out, block.loc_key) + ptr = self.context.get_ptr_from_cache(fname_out, self.FUNCNAME) # Store a pointer on the function jitted code loc_key = block.loc_key -- cgit 1.4.1