aboutsummaryrefslogtreecommitdiff
path: root/src/zig_llvm.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2024-09-02 17:57:27 -0700
committerGitHub <noreply@github.com>2024-09-02 17:57:27 -0700
commit242d268a06261d31161ad3a30ac0c2827ca49d99 (patch)
tree619805cd04cd46e14263ccbb8fb41f463e853ab0 /src/zig_llvm.cpp
parent9bcb0e938c6de1d4de6546de57495092a5903536 (diff)
parent15b4c01ab1dd578b0a306b18b11b79f6b9bce88d (diff)
downloadzig-242d268a06261d31161ad3a30ac0c2827ca49d99.tar.gz
zig-242d268a06261d31161ad3a30ac0c2827ca49d99.zip
Merge pull request #21277 from antlilja/llvm-module-flags
LLVM: Set module flags through Builder instead of LLVM API bindings
Diffstat (limited to 'src/zig_llvm.cpp')
-rw-r--r--src/zig_llvm.cpp14
1 files changed, 0 insertions, 14 deletions
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)
{