llvm: minor fixes

This commit is contained in:
Jacob Young 2023-07-17 20:17:43 -04:00
parent 9afb349aba
commit 9c4d5e64b4
3 changed files with 4 additions and 4 deletions

View File

@ -8,7 +8,7 @@ const native_endian = builtin.cpu.arch.endian();
const DW = std.dwarf;
const Builder = @import("llvm/Builder.zig");
const llvm = if (build_options.have_llvm)
const llvm = if (build_options.have_llvm or true)
@import("llvm/bindings.zig")
else
@compileError("LLVM unavailable");

View File

@ -6644,7 +6644,7 @@ fn bigIntConstAssumeCapacity(
} else |_| {
const llvm_limbs = try allocator.alloc(u64, std.math.divCeil(
usize,
canonical_value.bitCountTwosComp(),
if (canonical_value.positive) canonical_value.bitCountAbs() else bits,
@bitSizeOf(u64),
) catch unreachable);
defer allocator.free(llvm_limbs);

View File

@ -439,8 +439,8 @@ const usage_build_generic =
\\ -fno-unwind-tables Never produce unwind table entries
\\ -fLLVM Force using LLVM as the codegen backend
\\ -fno-LLVM Prevent using LLVM as the codegen backend
\\ -flibLLVM Force using LLVM shared library apias the codegen backend
\\ -fno-libLLVM Prevent using LLVM as the codegen backend
\\ -flibLLVM Force using the LLVM API in the codegen backend
\\ -fno-libLLVM Prevent using the LLVM API in the codegen backend
\\ -fClang Force using Clang as the C/C++ compilation backend
\\ -fno-Clang Prevent using Clang as the C/C++ compilation backend
\\ -freference-trace[=num] How many lines of reference trace should be shown per compile error