oppc/code: deprecate redundant class variable
authorDmitry Selyutin <ghostmansd@gmail.com>
Tue, 16 Jan 2024 19:09:45 +0000 (22:09 +0300)
committerDmitry Selyutin <ghostmansd@gmail.com>
Tue, 16 Jan 2024 19:10:08 +0000 (22:10 +0300)
src/openpower/oppc/pc_code.py

index 7e143c3bdbad682490c213d5bbefe4da1eeed235..b8e30ee12e68905538f73c773da1eba09c59dbc6 100644 (file)
@@ -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):