From d0727aa74bf264580e82f37abc9833b75804daca Mon Sep 17 00:00:00 2001 From: Fabrice Desclaux Date: Wed, 15 Feb 2017 16:22:21 +0100 Subject: Asmbloc: rename asm_label to AsmLabel --- miasm2/jitter/codegen.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'miasm2/jitter/codegen.py') diff --git a/miasm2/jitter/codegen.py b/miasm2/jitter/codegen.py index e9907071..09383f54 100644 --- a/miasm2/jitter/codegen.py +++ b/miasm2/jitter/codegen.py @@ -1,7 +1,7 @@ import miasm2.expression.expression as m2_expr from miasm2.ir.ir import IRBlock from miasm2.ir.translators import Translator -from miasm2.core.asmbloc import expr_is_label, AsmBlockBad, asm_label +from miasm2.core.asmbloc import expr_is_label, AsmBlockBad, AsmLabel # Miasm to C translator translator = Translator.to_language("C") @@ -324,11 +324,11 @@ class CGen(object): return out def gen_goto_code(self, attrib, instr_offsets, dst): - if isinstance(dst, asm_label) and dst.offset is None: + if isinstance(dst, AsmLabel) and dst.offset is None: # Generate goto for local labels return ['goto %s;' % dst.name] offset = None - if isinstance(dst, asm_label) and dst.offset is not None: + if isinstance(dst, AsmLabel) and dst.offset is not None: offset = dst.offset elif isinstance(dst, (int, long)): offset = dst -- cgit 1.4.1