From 7cb87c14fe593b60b7034f12d2efd927309a0b96 Mon Sep 17 00:00:00 2001 From: antlilja Date: Sun, 1 Sep 2024 14:21:19 +0200 Subject: LLVM: Remove cpp bindings for setPICLevel, setPIELevel and setCodeModel --- src/zig_llvm.cpp | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'src/zig_llvm.cpp') diff --git a/src/zig_llvm.cpp b/src/zig_llvm.cpp index dd0243b660..351b28df6b 100644 --- a/src/zig_llvm.cpp +++ b/src/zig_llvm.cpp @@ -435,20 +435,6 @@ void ZigLLVMParseCommandLineOptions(size_t argc, const char *const *argv) { cl::ParseCommandLineOptions(argc, argv); } -void ZigLLVMSetModulePICLevel(LLVMModuleRef module, bool big) { - unwrap(module)->setPICLevel(big ? PICLevel::Level::BigPIC : PICLevel::Level::SmallPIC); -} - -void ZigLLVMSetModulePIELevel(LLVMModuleRef module, bool large) { - unwrap(module)->setPIELevel(large ? PIELevel::Level::Large : PIELevel::Level::Small); -} - -void ZigLLVMSetModuleCodeModel(LLVMModuleRef module, LLVMCodeModel code_model) { - bool JIT; - unwrap(module)->setCodeModel(*unwrap(code_model, JIT)); - assert(!JIT); -} - bool ZigLLVMWriteImportLibrary(const char *def_path, const ZigLLVM_ArchType arch, const char *output_lib_path, bool kill_at) { -- cgit v1.2.3