aboutsummaryrefslogtreecommitdiff
path: root/src/codegen
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2023-12-14 19:49:53 -0700
committerAndrew Kelley <andrew@ziglang.org>2024-01-01 17:51:19 -0700
commit2596f5d92593a5f7dad21d9a54f2d08f33639432 (patch)
treee44cd8e057f87b736a915550393bd023f151b771 /src/codegen
parent7e7d5dc958b08dc0f671cd1b119cd831fc877d16 (diff)
downloadzig-2596f5d92593a5f7dad21d9a54f2d08f33639432.tar.gz
zig-2596f5d92593a5f7dad21d9a54f2d08f33639432.zip
update bin_file.options references in Sema
mainly pertaining to error return tracing
Diffstat (limited to 'src/codegen')
-rw-r--r--src/codegen/llvm.zig10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/codegen/llvm.zig b/src/codegen/llvm.zig
index 6545f84f9d..75fb373d9b 100644
--- a/src/codegen/llvm.zig
+++ b/src/codegen/llvm.zig
@@ -1398,7 +1398,7 @@ pub const Object = struct {
};
const err_return_tracing = Type.fromInterned(fn_info.return_type).isError(mod) and
- mod.comp.bin_file.options.error_return_tracing;
+ mod.comp.config.any_error_tracing;
const err_ret_trace: Builder.Value = if (err_return_tracing) param: {
const param = wip.arg(llvm_arg_i);
@@ -2820,7 +2820,7 @@ pub const Object = struct {
}
if (Type.fromInterned(fn_info.return_type).isError(mod) and
- o.module.comp.bin_file.options.error_return_tracing)
+ o.module.comp.config.any_error_tracing)
{
const ptr_ty = try mod.singleMutPtrType(try o.getStackTraceType());
try param_di_types.append(try o.lowerDebugType(ptr_ty, .full));
@@ -2988,7 +2988,7 @@ pub const Object = struct {
}
const err_return_tracing = Type.fromInterned(fn_info.return_type).isError(mod) and
- mod.comp.bin_file.options.error_return_tracing;
+ mod.comp.config.any_error_tracing;
if (err_return_tracing) {
try attributes.addParamAttr(llvm_arg_i, .nonnull, &o.builder);
@@ -3677,7 +3677,7 @@ pub const Object = struct {
}
if (Type.fromInterned(fn_info.return_type).isError(mod) and
- mod.comp.bin_file.options.error_return_tracing)
+ mod.comp.config.any_error_tracing)
{
const ptr_ty = try mod.singleMutPtrType(try o.getStackTraceType());
try llvm_params.append(o.gpa, try o.lowerType(ptr_ty));
@@ -5142,7 +5142,7 @@ pub const FuncGen = struct {
};
const err_return_tracing = return_type.isError(mod) and
- o.module.comp.bin_file.options.error_return_tracing;
+ o.module.comp.config.any_error_tracing;
if (err_return_tracing) {
assert(self.err_ret_trace != .none);
try llvm_args.append(self.err_ret_trace);