aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/vhdl/python/libghdl/thinutils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vhdl/python/libghdl/thinutils.py b/src/vhdl/python/libghdl/thinutils.py
index 1e8ee417d..8fc01d434 100644
--- a/src/vhdl/python/libghdl/thinutils.py
+++ b/src/vhdl/python/libghdl/thinutils.py
@@ -9,6 +9,8 @@ from libghdl.nodes_meta import (Attr, types)
Null_Iir = 0
Null_Iir_List = 0
+def name_image(nameid):
+ return thin.Get_Name_Ptr(nameid).decode('utf-8')
def _build_enum_image(cls):
d = [e for e in dir(cls) if e[0] != '_']