From b056a237473d49b9ff2f9e056111ef6cde7d26bf Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Tue, 16 Jan 2024 22:09:45 +0300 Subject: [PATCH] oppc/code: deprecate redundant class variable --- src/openpower/oppc/pc_code.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/openpower/oppc/pc_code.py b/src/openpower/oppc/pc_code.py index 7e143c3b..b8e30ee1 100644 --- a/src/openpower/oppc/pc_code.py +++ b/src/openpower/oppc/pc_code.py @@ -34,7 +34,6 @@ class CodeVisitor(pc_util.Visitor): def __init__(self, insn, root): self.__root = root self.__insn = insn - self.__attrs = {} self.__decls = set() self.__header = object() self.__footer = object() @@ -629,7 +628,6 @@ class CodeVisitor(pc_util.Visitor): symbol = f"OPPC_ATTR_{attr.replace('.', '_')}" self[node].emit(f"/* {attr} */") self[node].emit(stmt=symbol) - self.__attrs[node] = symbol @pc_util.Hook(pc_ast.Symbol) def Symbol(self, node): -- 2.30.2