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 {...@@ -51,15 +51,6 @@ pub const Context = opaque {
51pub const Module = opaque {51pub const Module = opaque {
52 pub const dispose = LLVMDisposeModule;52 pub const dispose = LLVMDisposeModule;
53 extern fn LLVMDisposeModule(*Module) void;53 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;
63};54};
6455
65pub const disposeMessage = LLVMDisposeMessage;56pub const disposeMessage = LLVMDisposeMessage;
src/zig_llvm.cpp-14
...@@ -435,20 +435,6 @@ void ZigLLVMParseCommandLineOptions(size_t argc, const char *const *argv) {...@@ -435,20 +435,6 @@ void ZigLLVMParseCommandLineOptions(size_t argc, const char *const *argv) {
435 cl::ParseCommandLineOptions(argc, argv);435 cl::ParseCommandLineOptions(argc, argv);
436}436}
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
452bool ZigLLVMWriteImportLibrary(const char *def_path, const ZigLLVM_ArchType arch,438bool ZigLLVMWriteImportLibrary(const char *def_path, const ZigLLVM_ArchType arch,
453 const char *output_lib_path, bool kill_at)439 const char *output_lib_path, bool kill_at)
454{440{
src/zig_llvm.h-4
...@@ -155,10 +155,6 @@ enum ZigLLVM_CallingConv {...@@ -155,10 +155,6 @@ enum ZigLLVM_CallingConv {
155 ZigLLVM_MaxID = 1023,155 ZigLLVM_MaxID = 1023,
156};156};
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
162ZIG_EXTERN_C void ZigLLVMParseCommandLineOptions(size_t argc, const char *const *argv);158ZIG_EXTERN_C void ZigLLVMParseCommandLineOptions(size_t argc, const char *const *argv);
163159
164// synchronize with llvm/include/ADT/Triple.h::ArchType160// synchronize with llvm/include/ADT/Triple.h::ArchType