about summary refs log tree commit diff stats
path: root/miasm2/ir/ir.py
diff options
context:
space:
mode:
Diffstat (limited to 'miasm2/ir/ir.py')
-rw-r--r--miasm2/ir/ir.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/miasm2/ir/ir.py b/miasm2/ir/ir.py
index 7c39cf04..67881ae6 100644
--- a/miasm2/ir/ir.py
+++ b/miasm2/ir/ir.py
@@ -477,13 +477,21 @@ class IntermediateRepresentation(object):
             addr = self.symbol_pool.getby_name_create(addr.name)
         return addr
 
-    def get_bloc(self, addr):
+    def get_block(self, addr):
         """Returns the irbloc associated to an ExprId/ExprInt/label/int
         @addr: an ExprId/ExprInt/label/int"""
 
         label = self.get_label(addr)
         return self.blocks.get(label, None)
 
+    def get_bloc(self, addr):
+        """
+        DEPRECATED function
+        Use get_block instead of get_block
+        """
+        warnings.warn('DEPRECATION WARNING: use "get_block" instead of "get_bloc"')
+        return self.get_block(addr)
+
     def add_instr(self, line, addr=0, gen_pc_updt=False):
         block = AsmBlock(self.gen_label())
         block.lines = [line]