compiler: delete dependency on LLVM ParseCommandLineOptions

This commit is contained in:
Andrew Kelley 2026-01-28 16:41:08 -08:00
parent 757ec185f0
commit a6067c3821
3 changed files with 0 additions and 13 deletions

View file

@ -335,9 +335,6 @@ extern fn ZigLLVMWriteArchive(
archive_kind: ArchiveKind,
) bool;
pub const ParseCommandLineOptions = ZigLLVMParseCommandLineOptions;
extern fn ZigLLVMParseCommandLineOptions(argc: usize, argv: [*]const [*:0]const u8) void;
pub const GetHostCPUName = LLVMGetHostCPUName;
extern fn LLVMGetHostCPUName() ?[*:0]u8;

View file

@ -3446,12 +3446,6 @@ fn buildOutputType(
src.src_path = try dirs.local_cache.join(arena, &.{sub_path});
}
if (build_options.have_llvm and emit_asm_resolved != .no) {
// LLVM has no way to set this non-globally.
const argv = [_][*:0]const u8{ "zig (LLVM option parsing)", "--x86-asm-syntax=intel" };
@import("codegen/llvm/bindings.zig").ParseCommandLineOptions(argv.len, &argv);
}
const clang_passthrough_mode = switch (arg_mode) {
.cc, .cpp, .translate_c => true,
else => false,

View file

@ -468,10 +468,6 @@ bool ZigLLVMGetBrokenDebugInfo(LLVMContextRef context_ref) {
unwrap(context_ref)->getDiagHandlerPtr())->BrokenDebugInfo;
}
void ZigLLVMParseCommandLineOptions(size_t argc, const char *const *argv) {
cl::ParseCommandLineOptions(argc, argv);
}
bool ZigLLVMWriteArchive(const char *archive_name, const char **file_names, size_t file_name_count,
ZigLLVMArchiveKind archive_kind)
{