diff options
| author | Camille Mougey <commial@gmail.com> | 2017-03-14 08:27:13 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-03-14 08:27:13 +0100 |
| commit | 67117bf808b8348a103f91ca64749d46de3f2db5 (patch) | |
| tree | 0317a4ba83bd3fe0cc21a89855139271d04af318 /miasm2/core/sembuilder.py | |
| parent | 5ee794990ff30ca18909dd3815eda26ac267cbf4 (diff) | |
| parent | f1a2d7456c8a7482939d43ac5c1d6b829db4cdaf (diff) | |
| download | miasm-67117bf808b8348a103f91ca64749d46de3f2db5.tar.gz miasm-67117bf808b8348a103f91ca64749d46de3f2db5.zip | |
Merge pull request #497 from serpilliere/rename_symb
Rename symb
Diffstat (limited to 'miasm2/core/sembuilder.py')
| -rw-r--r-- | miasm2/core/sembuilder.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/miasm2/core/sembuilder.py b/miasm2/core/sembuilder.py index 6ff390bb..f101d94c 100644 --- a/miasm2/core/sembuilder.py +++ b/miasm2/core/sembuilder.py @@ -5,7 +5,7 @@ import ast import re import miasm2.expression.expression as m2_expr -from miasm2.ir.ir import irbloc +from miasm2.ir.ir import IRBlock class MiasmTransformer(ast.NodeTransformer): @@ -125,7 +125,7 @@ class SemBuilder(object): # Init self.transformer = MiasmTransformer() self._ctx = dict(m2_expr.__dict__) - self._ctx["irbloc"] = irbloc + self._ctx["IRBlock"] = IRBlock self._functions = {} # Update context @@ -250,12 +250,12 @@ class SemBuilder(object): sub_blocks[-1] = ast.List(elts=sub_blocks[-1], ctx=ast.Load()) - ## Replace the block with a call to 'irbloc' + ## Replace the block with a call to 'IRBlock' lbl_if_name = ast.Attribute(value=ast.Name(id=lbl_name, ctx=ast.Load()), attr='name', ctx=ast.Load()) - sub_blocks[-1] = ast.Call(func=ast.Name(id='irbloc', + sub_blocks[-1] = ast.Call(func=ast.Name(id='IRBlock', ctx=ast.Load()), args=[lbl_if_name, sub_blocks[-1]], |