diff --git a/src/codegen/llvm.zig b/src/codegen/llvm.zig index a46d875b342b087267571a02d8311b9184fd17a7..59df12df610d4c797577d9b33f05b87d1fcfdce2 100644 --- a/src/codegen/llvm.zig +++ b/src/codegen/llvm.zig @@ -1284,8 +1284,7 @@ pub const Object = struct { .large => .Large, }; - // TODO handle float ABI better- it should depend on the ABI portion of std.Target - const float_abi: llvm.ABIType = .Default; + const float_abi: llvm.ABIType = if (comp.root_mod.resolved_target.result.floatAbi() == .hard) .Hard else .Soft; var target_machine = llvm.TargetMachine.create( target,