Removed param_names from Fn inside Module.zig

Removed the copy of param_names inside of Fn and changed to
implementation of getParamName to fetch to parameter name from the ZIR.
The signature of getParamName was also changed to take an additional
*Module argument.
This commit is contained in:
antlilja
2022-07-30 11:39:49 +02:00
parent ff125db53d
commit cd8070f94f
9 changed files with 47 additions and 30 deletions

View File

@@ -7313,7 +7313,7 @@ pub const FuncGen = struct {
const lbrace_col = func.lbrace_column + 1;
const di_local_var = dib.createParameterVariable(
self.di_scope.?,
func.getParamName(src_index).ptr, // TODO test 0 bit args
func.getParamName(self.dg.module, src_index).ptr, // TODO test 0 bit args
self.di_file.?,
lbrace_line,
try self.dg.object.lowerDebugType(inst_ty, .full),