aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/llvm.zig
diff options
context:
space:
mode:
authorantlilja <liljaanton2001@gmail.com>2022-07-30 11:39:49 +0200
committerantlilja <liljaanton2001@gmail.com>2022-08-01 14:51:50 +0200
commitcd8070f94f6865959949dbcec6e0e32cd88bb544 (patch)
tree5eff505123ed4ea2eaefb159943f92748a8d2607 /src/codegen/llvm.zig
parentff125db53d8c18a63872ebdcdf6dd9653eb3f56b (diff)
downloadzig-cd8070f94f6865959949dbcec6e0e32cd88bb544.tar.gz
zig-cd8070f94f6865959949dbcec6e0e32cd88bb544.zip
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.
Diffstat (limited to 'src/codegen/llvm.zig')
-rw-r--r--src/codegen/llvm.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codegen/llvm.zig b/src/codegen/llvm.zig
index 664edb0304..5ea7ffad67 100644
--- a/src/codegen/llvm.zig
+++ b/src/codegen/llvm.zig
@@ -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),