File tree 1 file changed +4
-1
lines changed
artiq/compiler/transforms
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -175,17 +175,20 @@ def process(self, functions):
175
175
def process_function (self , func ):
176
176
try :
177
177
self .llfunction = self .llmodule .get_global (func .name )
178
+
178
179
if self .llfunction is None :
179
180
llargtys = []
180
181
for arg in func .arguments :
181
182
llargtys .append (self .llty_of_type (arg .type ))
182
183
llfunty = ll .FunctionType (args = llargtys ,
183
184
return_type = self .llty_of_type (func .type .ret , for_return = True ))
184
185
self .llfunction = ll .Function (self .llmodule , llfunty , func .name )
185
- self . llfunction . attributes . add ( 'uwtable' )
186
+
186
187
if func .is_internal :
187
188
self .llfunction .linkage = 'internal'
188
189
190
+ self .llfunction .attributes .add ('uwtable' )
191
+
189
192
self .llmap = {}
190
193
self .llbuilder = ll .IRBuilder ()
191
194
self .fixups = []
You can’t perform that action at this time.
0 commit comments