From ae9a47b5fb511db04f66d5e716e6056e1ea469da Mon Sep 17 00:00:00 2001 From: Fabrice Desclaux Date: Thu, 7 Jan 2021 11:44:24 +0100 Subject: [PATCH] Add ir_arch deprecation warning --- miasm/jitter/jitload.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/miasm/jitter/jitload.py b/miasm/jitter/jitload.py index 5c44d2477..2ea4e0a88 100644 --- a/miasm/jitter/jitload.py +++ b/miasm/jitter/jitload.py @@ -261,6 +261,11 @@ def __init__(self, lifter, jit_type="gcc"): self.init_exceptions_handler() self.exec_cb = None + @property + def ir_arch(self): + warnings.warn('DEPRECATION WARNING: use ".lifter" instead of ".ir_arch"') + return self.lifter + def init_exceptions_handler(self): "Add common exceptions handlers"