about summary refs log tree commit diff stats
path: root/miasm2/jitter/codegen.py
diff options
context:
space:
mode:
authorFabrice Desclaux <fabrice.desclaux@cea.fr>2018-08-21 08:27:40 +0200
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2018-08-23 09:35:27 +0200
commit253547e35343aed844e7bcb033c610409fcbd21e (patch)
treef57b90520b3c06edc8483979795d3de2e9a54d26 /miasm2/jitter/codegen.py
parent46bb6b39453ea8b5abb04dfd62492e429376a8ea (diff)
downloadmiasm-253547e35343aed844e7bcb033c610409fcbd21e.tar.gz
miasm-253547e35343aed844e7bcb033c610409fcbd21e.zip
Code cleaning: lgtm.com
Diffstat (limited to 'miasm2/jitter/codegen.py')
-rw-r--r--miasm2/jitter/codegen.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/miasm2/jitter/codegen.py b/miasm2/jitter/codegen.py
index 69e83de5..ff6c1485 100644
--- a/miasm2/jitter/codegen.py
+++ b/miasm2/jitter/codegen.py
@@ -336,26 +336,17 @@ class CGen(object):
             offset = int(expr)
             loc_key = self.ir_arch.loc_db.get_or_create_offset_location(offset)
             self.add_label_index(dst2index, loc_key)
-
-            value, int_size = int_size_to_bn(offset, 64)
             out = hex(offset)
-
             return ("%s" % dst2index[loc_key], out)
         if expr.is_loc():
             loc_key = expr.loc_key
             offset = self.ir_arch.loc_db.get_location_offset(expr.loc_key)
             if offset is not None:
                 self.add_label_index(dst2index, loc_key)
-
-                value, int_size = int_size_to_bn(offset, 64)
                 out = hex(offset)
-
                 return ("%s" % dst2index[loc_key], out)
             self.add_label_index(dst2index, loc_key)
-
-            value, int_size = int_size_to_bn(0, 64)
             out = hex(0)
-
             return ("%s" % dst2index[loc_key], out)
         dst2index[expr] = -1
         return ("-1", self.id_to_c(expr))