about summary refs log tree commit diff stats
path: root/miasm2/ir/ir.py
diff options
context:
space:
mode:
authorFabrice Desclaux <fabrice.desclaux@cea.fr>2017-02-14 17:46:38 +0100
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2017-03-13 14:10:35 +0100
commit73828c4be50c21eae080d0e2150093a8641baab0 (patch)
tree023ffea903e9aaddfc24409682cc47ae3d45d88d /miasm2/ir/ir.py
parentb9c87b0e9167940fbbadf0f642e07ee9d7a678e5 (diff)
downloadmiasm-73828c4be50c21eae080d0e2150093a8641baab0.tar.gz
miasm-73828c4be50c21eae080d0e2150093a8641baab0.zip
IR/ir: rename ir to IntermediateRepresentation
Diffstat (limited to '')
-rw-r--r--miasm2/ir/ir.py19
1 files changed, 18 insertions, 1 deletions
diff --git a/miasm2/ir/ir.py b/miasm2/ir/ir.py
index b06a8136..b993c356 100644
--- a/miasm2/ir/ir.py
+++ b/miasm2/ir/ir.py
@@ -320,7 +320,12 @@ class DiGraphIR(DiGraph):
         return super(DiGraphIR, self).dot()
 
 
-class ir(object):
+class IntermediateRepresentation(object):
+    """
+    Intermediate representation object
+
+    Allow native assembly to intermediate representation traduction
+    """
 
     def __init__(self, arch, attrib, symbol_pool=None):
         if symbol_pool is None:
@@ -602,3 +607,15 @@ class ir(object):
         if self._graph is None:
             self._gen_graph()
         return self._graph
+
+
+
+class ir(IntermediateRepresentation):
+    """
+    DEPRECATED object
+    Use IntermediateRepresentation instead of ir
+    """
+
+    def __init__(self, label, irs, lines=None):
+        warnings.warn('DEPRECATION WARNING: use "IntermediateRepresentation" instead of "ir"')
+        super(ir, self).__init__(label, irs, lines)