@@ -1878,6 +1878,10 @@ def generate_code(self, optimize, schema_file_names):
1878
1878
write (s , "-- Increase Pointer Depth" )
1879
1879
write (s , "" )
1880
1880
1881
+ write (s , "function Decorate_Addressed_Variables (Name : String) return String;" )
1882
+ write (s , "-- Create Decorated Name" )
1883
+ write (s , "" )
1884
+
1881
1885
write (s , "function Remove_Extra_Type_Information (I : Irep) return Irep;" )
1882
1886
write (s , "-- Remove Type Bounds" )
1883
1887
write (s , "" )
@@ -2130,7 +2134,8 @@ def generate_code(self, optimize, schema_file_names):
2130
2134
with indent (b ):
2131
2135
write (b , "return Make_Dereference_Expr (Make_Symbol_Expr (Get_Source_Location (I)," )
2132
2136
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))," )
2134
2139
write (b , "Get_Source_Location (I), Get_Type (I));" )
2135
2140
write (b , "end if;" )
2136
2141
write (b , "" )
@@ -2151,6 +2156,15 @@ def generate_code(self, optimize, schema_file_names):
2151
2156
write (b , "end Wrap_Pointer;" )
2152
2157
write (b , "" )
2153
2158
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
+
2154
2168
write_comment_block (b , "Remove_Extra_Type_Information" )
2155
2169
write (b , "function Remove_Extra_Type_Information (I : Irep) return Irep" )
2156
2170
write (b , "is" )
0 commit comments