diff options
| author | serpilliere <serpilliere@users.noreply.github.com> | 2017-04-18 16:03:04 +0200 |
|---|---|---|
| committer | Camille Mougey <commial@gmail.com> | 2017-04-18 16:03:04 +0200 |
| commit | 2580f884fcbaaf29ae235f0f10d5ed62f6ffdf22 (patch) | |
| tree | 9c77991accffe970a7bca66128f6b13334e03905 /miasm2/jitter/jitcore_llvm.py | |
| parent | 66914aadcef60d590468f39a44d710aa28b0b772 (diff) | |
| download | miasm-2580f884fcbaaf29ae235f0f10d5ed62f6ffdf22.tar.gz miasm-2580f884fcbaaf29ae235f0f10d5ed62f6ffdf22.zip | |
Jitter: fix symb cache name (#525)
Diffstat (limited to 'miasm2/jitter/jitcore_llvm.py')
| -rw-r--r-- | miasm2/jitter/jitcore_llvm.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/miasm2/jitter/jitcore_llvm.py b/miasm2/jitter/jitcore_llvm.py index d082dd79..7765ad39 100644 --- a/miasm2/jitter/jitcore_llvm.py +++ b/miasm2/jitter/jitcore_llvm.py @@ -82,7 +82,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.label.name) + func = LLVMFunction(self.context, LLVMFunction.canonize_label_name(block.label)) # Set log level func.log_regs = self.log_regs @@ -113,7 +113,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.label.name) + ptr = self.context.get_ptr_from_cache(fname_out, LLVMFunction.canonize_label_name(block.label)) # Store a pointer on the function jitted code self.lbl2jitbloc[block.label.offset] = ptr |