diff options
| author | Ajax <commial@gmail.com> | 2017-07-21 17:26:01 +0200 |
|---|---|---|
| committer | Ajax <commial@gmail.com> | 2017-07-21 17:26:01 +0200 |
| commit | 5bad1c259075bb730da09942b1a6f5c4d3de6af2 (patch) | |
| tree | d75efbdbe695fc7443d12e402b75070735173b23 /miasm2/jitter/jitcore_cc_base.py | |
| parent | 4dfca940e75ad8af65b69dd9bab9ff503141984b (diff) | |
| download | miasm-5bad1c259075bb730da09942b1a6f5c4d3de6af2.tar.gz miasm-5bad1c259075bb730da09942b1a6f5c4d3de6af2.zip | |
Jit: merge duplicate hash code
Diffstat (limited to 'miasm2/jitter/jitcore_cc_base.py')
| -rw-r--r-- | miasm2/jitter/jitcore_cc_base.py | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/miasm2/jitter/jitcore_cc_base.py b/miasm2/jitter/jitcore_cc_base.py index 0ca2392d..9280d952 100644 --- a/miasm2/jitter/jitcore_cc_base.py +++ b/miasm2/jitter/jitcore_cc_base.py @@ -3,7 +3,6 @@ import os import tempfile from distutils.sysconfig import get_python_inc -from hashlib import md5 from miasm2.jitter.jitcore import JitCore from miasm2.core.utils import keydefaultdict @@ -109,15 +108,3 @@ class JitCore_Cc_Base(JitCore): @staticmethod def gen_C_source(ir_arch, func_code): raise NotImplementedError() - - def hash_block(self, block): - """ - Build a hash of the block @block - @block: asmblock - """ - block_raw = "".join(line.b for line in block.lines) - block_hash = md5("%X_%s_%s_%s" % (block.label.offset, - self.log_mn, - self.log_regs, - block_raw)).hexdigest() - return block_hash |