File tree 1 file changed +4
-4
lines changed
artiq/compiler/transforms
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -387,14 +387,14 @@ def process_function(self, func):
387
387
for block in func .basic_blocks :
388
388
self .llbuilder .position_at_end (self .llmap [block ])
389
389
for insn in block .instructions :
390
+ if insn .loc is not None :
391
+ self .llbuilder .debug_metadata = \
392
+ self .debug_info_emitter .emit_loc (insn .loc , disubprogram )
393
+
390
394
llinsn = getattr (self , "process_" + type (insn ).__name__ )(insn )
391
395
assert llinsn is not None
392
396
self .llmap [insn ] = llinsn
393
397
394
- if insn .loc is not None and not isinstance (llinsn , ll .Constant ):
395
- diloc = self .debug_info_emitter .emit_loc (insn .loc , disubprogram )
396
- llinsn .set_metadata ('dbg' , diloc )
397
-
398
398
# There is no 1:1 correspondence between ARTIQ and LLVM
399
399
# basic blocks, because sometimes we expand a single ARTIQ
400
400
# instruction so that the result spans several LLVM basic
You can’t perform that action at this time.
0 commit comments