From 08bdc5e9adcb51c2bd6374a13de21f40ca4935a9 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Sun, 14 Jan 2024 15:46:49 +0300 Subject: [PATCH] oppc/code: emit symbol pseudocode --- src/openpower/oppc/pc_code.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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): -- 2.30.2