mirror of
https://github.com/ziglang/zig.git
synced 2026-02-12 20:37:54 +00:00
LLVM: Remove cpp bindings for setPICLevel, setPIELevel and setCodeModel
This commit is contained in:
parent
629bd90e26
commit
7cb87c14fe
@ -51,15 +51,6 @@ pub const Context = opaque {
|
||||
pub const Module = opaque {
|
||||
pub const dispose = LLVMDisposeModule;
|
||||
extern fn LLVMDisposeModule(*Module) void;
|
||||
|
||||
pub const setModulePICLevel = ZigLLVMSetModulePICLevel;
|
||||
extern fn ZigLLVMSetModulePICLevel(module: *Module, big: bool) void;
|
||||
|
||||
pub const setModulePIELevel = ZigLLVMSetModulePIELevel;
|
||||
extern fn ZigLLVMSetModulePIELevel(module: *Module, large: bool) void;
|
||||
|
||||
pub const setModuleCodeModel = ZigLLVMSetModuleCodeModel;
|
||||
extern fn ZigLLVMSetModuleCodeModel(module: *Module, code_model: CodeModel) void;
|
||||
};
|
||||
|
||||
pub const disposeMessage = LLVMDisposeMessage;
|
||||
|
||||
@ -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)
|
||||
{
|
||||
|
||||
@ -155,10 +155,6 @@ enum ZigLLVM_CallingConv {
|
||||
ZigLLVM_MaxID = 1023,
|
||||
};
|
||||
|
||||
ZIG_EXTERN_C void ZigLLVMSetModulePICLevel(LLVMModuleRef module, bool big);
|
||||
ZIG_EXTERN_C void ZigLLVMSetModulePIELevel(LLVMModuleRef module, bool large);
|
||||
ZIG_EXTERN_C void ZigLLVMSetModuleCodeModel(LLVMModuleRef module, LLVMCodeModel code_model);
|
||||
|
||||
ZIG_EXTERN_C void ZigLLVMParseCommandLineOptions(size_t argc, const char *const *argv);
|
||||
|
||||
// synchronize with llvm/include/ADT/Triple.h::ArchType
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user