projects
/
openpower-isa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
238701b
)
oppc/code: deprecate redundant class variable
author
Dmitry Selyutin
<ghostmansd@gmail.com>
Tue, 16 Jan 2024 19:09:45 +0000
(22:09 +0300)
committer
Dmitry Selyutin
<ghostmansd@gmail.com>
Tue, 16 Jan 2024 19:10:08 +0000
(22:10 +0300)
src/openpower/oppc/pc_code.py
patch
|
blob
|
history
diff --git
a/src/openpower/oppc/pc_code.py
b/src/openpower/oppc/pc_code.py
index 7e143c3bdbad682490c213d5bbefe4da1eeed235..b8e30ee12e68905538f73c773da1eba09c59dbc6 100644
(file)
--- 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):