| ... | ... | @@ -76,7 +76,15 @@ pub fn updateFunc(self: *NvPtx, module: *Module, func: *Module.Fn, air: Air, liv |
| 76 | 76 | |
| 77 | 77 | pub fn updateDecl(self: *NvPtx, module: *Module, decl_index: Module.Decl.Index) !void { |
| 78 | 78 | if (!build_options.have_llvm) return; |
| 79 | const decl = module.declPtr(decl_index); |
| 80 | log.info("updating {s}", .{decl.name}); |
| 79 | 81 | return self.llvm_object.updateDecl(module, decl_index); |
| 82 | // const decl_index = func.owner_decl; |
| 83 | // const decl = module.declPtr(decl_index); |
| 84 | |
| 85 | // try mod.decl_exports.ensureUnusedCapacity(gpa, 1); |
| 86 | // try mod.export_owners.ensureUnusedCapacity(gpa, 1); |
| 87 | // mod.decl_exports.getOrPutAssumeCapacity(exported_decl_index); |
| 80 | 88 | } |
| 81 | 89 | |
| 82 | 90 | pub fn updateDeclExports( |