authorgravatar for jacobly@ziglang.orgJacob Young <jacobly@ziglang.org> 2023-07-17 20:17:43-04:00
committergravatar for jacobly@ziglang.orgJacob Young <jacobly@ziglang.org> 2023-07-19 23:38:40-04:00
log9c4d5e64b45001cd82c0db53d1a489f433024223
treee5514cff9198fdab6d253fe42ee1bd82dc49e18a
parent9afb349abaeaf6470329ea8990eb06eb37dd79e1

llvm: minor fixes


3 files changed, 4 insertions(+), 4 deletions(-)

src/codegen/llvm.zig+1-1
......@@ -8,7 +8,7 @@ const native_endian = builtin.cpu.arch.endian();
88const DW = std.dwarf;
99
1010const Builder = @import("llvm/Builder.zig");
11const llvm = if (build_options.have_llvm)
11const llvm = if (build_options.have_llvm or true)
1212 @import("llvm/bindings.zig")
1313else
1414 @compileError("LLVM unavailable");
src/codegen/llvm/Builder.zig+1-1
......@@ -6644,7 +6644,7 @@ fn bigIntConstAssumeCapacity(
66446644 } else |_| {
66456645 const llvm_limbs = try allocator.alloc(u64, std.math.divCeil(
66466646 usize,
6647 canonical_value.bitCountTwosComp(),
6647 if (canonical_value.positive) canonical_value.bitCountAbs() else bits,
66486648 @bitSizeOf(u64),
66496649 ) catch unreachable);
66506650 defer allocator.free(llvm_limbs);
src/main.zig+2-2
......@@ -439,8 +439,8 @@ const usage_build_generic =
439439 \\ -fno-unwind-tables Never produce unwind table entries
440440 \\ -fLLVM Force using LLVM as the codegen backend
441441 \\ -fno-LLVM Prevent using LLVM as the codegen backend
442 \\ -flibLLVM Force using LLVM shared library apias the codegen backend
443 \\ -fno-libLLVM Prevent using LLVM as the codegen backend
442 \\ -flibLLVM Force using the LLVM API in the codegen backend
443 \\ -fno-libLLVM Prevent using the LLVM API in the codegen backend
444444 \\ -fClang Force using Clang as the C/C++ compilation backend
445445 \\ -fno-Clang Prevent using Clang as the C/C++ compilation backend
446446 \\ -freference-trace[=num] How many lines of reference trace should be shown per compile error