authorgravatar for liljaanton2001@gmail.comantlilja <liljaanton2001@gmail.com> 2024-09-01 14:21:19+02:00
committergravatar for liljaanton2001@gmail.comantlilja <liljaanton2001@gmail.com> 2024-09-01 14:21:19+02:00
log7cb87c14fe593b60b7034f12d2efd927309a0b96
tree41267b10130d57a697f8c6971d16d3af8d3b9cd1
parent629bd90e267691acac7625771bb47de4298aa8aa

LLVM: Remove cpp bindings for setPICLevel, setPIELevel and setCodeModel


3 files changed, 0 insertions(+), 27 deletions(-)

src/codegen/llvm/bindings.zig-9
......@@ -51,15 +51,6 @@ pub const Context = opaque {
5151pub const Module = opaque {
5252 pub const dispose = LLVMDisposeModule;
5353 extern fn LLVMDisposeModule(*Module) void;
54
55 pub const setModulePICLevel = ZigLLVMSetModulePICLevel;
56 extern fn ZigLLVMSetModulePICLevel(module: *Module, big: bool) void;
57
58 pub const setModulePIELevel = ZigLLVMSetModulePIELevel;
59 extern fn ZigLLVMSetModulePIELevel(module: *Module, large: bool) void;
60
61 pub const setModuleCodeModel = ZigLLVMSetModuleCodeModel;
62 extern fn ZigLLVMSetModuleCodeModel(module: *Module, code_model: CodeModel) void;
6354};
6455
6556pub const disposeMessage = LLVMDisposeMessage;
src/zig_llvm.cpp-14
......@@ -435,20 +435,6 @@ void ZigLLVMParseCommandLineOptions(size_t argc, const char *const *argv) {
435435 cl::ParseCommandLineOptions(argc, argv);
436436}
437437
438void ZigLLVMSetModulePICLevel(LLVMModuleRef module, bool big) {
439 unwrap(module)->setPICLevel(big ? PICLevel::Level::BigPIC : PICLevel::Level::SmallPIC);
440}
441
442void ZigLLVMSetModulePIELevel(LLVMModuleRef module, bool large) {
443 unwrap(module)->setPIELevel(large ? PIELevel::Level::Large : PIELevel::Level::Small);
444}
445
446void ZigLLVMSetModuleCodeModel(LLVMModuleRef module, LLVMCodeModel code_model) {
447 bool JIT;
448 unwrap(module)->setCodeModel(*unwrap(code_model, JIT));
449 assert(!JIT);
450}
451
452438bool ZigLLVMWriteImportLibrary(const char *def_path, const ZigLLVM_ArchType arch,
453439 const char *output_lib_path, bool kill_at)
454440{
src/zig_llvm.h-4
......@@ -155,10 +155,6 @@ enum ZigLLVM_CallingConv {
155155 ZigLLVM_MaxID = 1023,
156156};
157157
158ZIG_EXTERN_C void ZigLLVMSetModulePICLevel(LLVMModuleRef module, bool big);
159ZIG_EXTERN_C void ZigLLVMSetModulePIELevel(LLVMModuleRef module, bool large);
160ZIG_EXTERN_C void ZigLLVMSetModuleCodeModel(LLVMModuleRef module, LLVMCodeModel code_model);
161
162158ZIG_EXTERN_C void ZigLLVMParseCommandLineOptions(size_t argc, const char *const *argv);
163159
164160// synchronize with llvm/include/ADT/Triple.h::ArchType