| author | |
| committer | |
| log | 7cb87c14fe593b60b7034f12d2efd927309a0b96 |
| tree | 41267b10130d57a697f8c6971d16d3af8d3b9cd1 |
| parent | 629bd90e267691acac7625771bb47de4298aa8aa |
3 files changed, 0 insertions(+), 27 deletions(-)
src/codegen/llvm/bindings.zig-9| ... | ... | @@ -51,15 +51,6 @@ pub const Context = opaque { |
| 51 | 51 | pub const Module = opaque { |
| 52 | 52 | pub const dispose = LLVMDisposeModule; |
| 53 | 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 | }; |
| 64 | 55 | |
| 65 | 56 | pub const disposeMessage = LLVMDisposeMessage; |
src/zig_llvm.cpp-14| ... | ... | @@ -435,20 +435,6 @@ void ZigLLVMParseCommandLineOptions(size_t argc, const char *const *argv) { |
| 435 | 435 | cl::ParseCommandLineOptions(argc, argv); |
| 436 | 436 | } |
| 437 | 437 | |
| 438 | void ZigLLVMSetModulePICLevel(LLVMModuleRef module, bool big) { | |
| 439 | unwrap(module)->setPICLevel(big ? PICLevel::Level::BigPIC : PICLevel::Level::SmallPIC); | |
| 440 | } | |
| 441 | ||
| 442 | void ZigLLVMSetModulePIELevel(LLVMModuleRef module, bool large) { | |
| 443 | unwrap(module)->setPIELevel(large ? PIELevel::Level::Large : PIELevel::Level::Small); | |
| 444 | } | |
| 445 | ||
| 446 | void ZigLLVMSetModuleCodeModel(LLVMModuleRef module, LLVMCodeModel code_model) { | |
| 447 | bool JIT; | |
| 448 | unwrap(module)->setCodeModel(*unwrap(code_model, JIT)); | |
| 449 | assert(!JIT); | |
| 450 | } | |
| 451 | ||
| 452 | 438 | bool ZigLLVMWriteImportLibrary(const char *def_path, const ZigLLVM_ArchType arch, |
| 453 | 439 | const char *output_lib_path, bool kill_at) |
| 454 | 440 | { |
src/zig_llvm.h-4| ... | ... | @@ -155,10 +155,6 @@ enum ZigLLVM_CallingConv { |
| 155 | 155 | ZigLLVM_MaxID = 1023, |
| 156 | 156 | }; |
| 157 | 157 | |
| 158 | ZIG_EXTERN_C void ZigLLVMSetModulePICLevel(LLVMModuleRef module, bool big); | |
| 159 | ZIG_EXTERN_C void ZigLLVMSetModulePIELevel(LLVMModuleRef module, bool large); | |
| 160 | ZIG_EXTERN_C void ZigLLVMSetModuleCodeModel(LLVMModuleRef module, LLVMCodeModel code_model); | |
| 161 | ||
| 162 | 158 | ZIG_EXTERN_C void ZigLLVMParseCommandLineOptions(size_t argc, const char *const *argv); |
| 163 | 159 | |
| 164 | 160 | // synchronize with llvm/include/ADT/Triple.h::ArchType |