From 9627a75b071787d49c10c45bd2d8e83423b988fe Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sun, 22 Sep 2019 14:00:05 -0400 Subject: [PATCH] clean up compiler_rt with some enum literals --- std/special/compiler_rt.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/std/special/compiler_rt.zig b/std/special/compiler_rt.zig index b222c31d83..638a9bb60c 100644 --- a/std/special/compiler_rt.zig +++ b/std/special/compiler_rt.zig @@ -233,7 +233,7 @@ comptime { @export("__aeabi_dcmpgt", @import("compiler_rt/arm/aeabi_dcmp.zig").__aeabi_dcmpgt, linkage); @export("__aeabi_dcmpun", @import("compiler_rt/comparedf2.zig").__unorddf2, linkage); } - if (builtin.os == builtin.Os.windows) { + if (builtin.os == .windows) { if (!builtin.link_libc) { @export("_chkstk", @import("compiler_rt/stack_probe.zig")._chkstk, strong_linkage); @export("__chkstk", @import("compiler_rt/stack_probe.zig").__chkstk, strong_linkage); @@ -247,11 +247,11 @@ comptime { } switch (builtin.arch) { - builtin.Arch.i386 => { + .i386 => { @export("_aulldiv", @import("compiler_rt/aulldiv.zig")._aulldiv, strong_linkage); @export("_aullrem", @import("compiler_rt/aullrem.zig")._aullrem, strong_linkage); }, - builtin.Arch.x86_64 => { + .x86_64 => { // The "ti" functions must use @Vector(2, u64) parameter types to adhere to the ABI // that LLVM expects compiler-rt to have. @export("__divti3", @import("compiler_rt/divti3.zig").__divti3_windows_x86_64, linkage);