@@ -1878,6 +1878,10 @@ def generate_code(self, optimize, schema_file_names):
18781878 write (s , "-- Increase Pointer Depth" )
18791879 write (s , "" )
18801880
1881+ write (s , "function Decorate_Addressed_Variables (Name : String) return String;" )
1882+ write (s , "-- Create Decorated Name" )
1883+ write (s , "" )
1884+
18811885 write (s , "function Remove_Extra_Type_Information (I : Irep) return Irep;" )
18821886 write (s , "-- Remove Type Bounds" )
18831887 write (s , "" )
@@ -2130,7 +2134,8 @@ def generate_code(self, optimize, schema_file_names):
21302134 with indent (b ):
21312135 write (b , "return Make_Dereference_Expr (Make_Symbol_Expr (Get_Source_Location (I)," )
21322136 with indent (b ):
2133- write (b , "Make_Pointer_Type (Get_Type (I), 64), False, \" Ptr_\" & Name)," )
2137+ write (b , "Make_Pointer_Type (Get_Type (I), 64), False," )
2138+ write (b , "Decorate_Addressed_Variables (Name))," )
21342139 write (b , "Get_Source_Location (I), Get_Type (I));" )
21352140 write (b , "end if;" )
21362141 write (b , "" )
@@ -2151,6 +2156,15 @@ def generate_code(self, optimize, schema_file_names):
21512156 write (b , "end Wrap_Pointer;" )
21522157 write (b , "" )
21532158
2159+ write_comment_block (b , "Decorate_Addressed_Variables" )
2160+ write (b , "function Decorate_Addressed_Variables (Name : String) return String" )
2161+ write (b , "is" )
2162+ write (b , "begin" )
2163+ with indent (b ):
2164+ write (b , "return Name & \" $Ptr\" ;" )
2165+ write (b , "end Decorate_Addressed_Variables;" )
2166+ write (b , "" )
2167+
21542168 write_comment_block (b , "Remove_Extra_Type_Information" )
21552169 write (b , "function Remove_Extra_Type_Information (I : Irep) return Irep" )
21562170 write (b , "is" )
0 commit comments