From: Dmitry Selyutin Date: Sun, 14 Jan 2024 12:46:49 +0000 (+0300) Subject: oppc/code: emit symbol pseudocode X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9fbd9acc0534ea5ed86fb6da9b3aa84cb2ab1371;p=openpower-isa.git oppc/code: emit symbol pseudocode --- diff --git a/src/openpower/oppc/pc_code.py b/src/openpower/oppc/pc_code.py index 1b66a1ca..77bdd429 100644 --- a/src/openpower/oppc/pc_code.py +++ b/src/openpower/oppc/pc_code.py @@ -403,7 +403,8 @@ class CodeVisitor(pc_util.Visitor): def Symbol(self, node): yield node self.__decls[str(node)].append(node) - self[node].emit(stmt=f"&{str(node)}") + with self.pseudocode(node=node): + self[node].emit(stmt=f"&{str(node)}") @pc_util.Hook(pc_ast.Node) def Node(self, node):