From a2637cdf0b40df074865d23a7fd71f082ad7f40a Mon Sep 17 00:00:00 2001 From: Fabrice Desclaux Date: Mon, 11 Dec 2017 14:26:23 +0100 Subject: Expr: Add new word ExprLoc This word represents a location in the binary. Thus, the hack of ExprId containing an AsmLabel ends here. --- test/core/sembuilder.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/core/sembuilder.py') diff --git a/test/core/sembuilder.py b/test/core/sembuilder.py index ebf9f385..f3894927 100644 --- a/test/core/sembuilder.py +++ b/test/core/sembuilder.py @@ -11,13 +11,13 @@ class IR(object): IRDst = m2_expr.ExprId("IRDst", 32) def get_next_instr(self, _): - return AsmLabel("NEXT") + return AsmLabel(m2_expr.LocKey(0), "NEXT") def get_next_label(self, _): - return AsmLabel("NEXT") + return AsmLabel(m2_expr.LocKey(0), "NEXT") def gen_label(self): - return AsmLabel("GEN") + return AsmLabel(m2_expr.LocKey(1), "GEN") class Instr(object): mode = 32 -- cgit 1.4.1