aboutsummaryrefslogtreecommitdiff
path: root/src/llvm_backend_opt.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2022-12-18 22:49:10 +0000
committergingerBill <bill@gingerbill.org>2022-12-18 22:49:10 +0000
commitc1f5be24e28c41efbbbe6d116d533b55d48bbf82 (patch)
treec000ca55e7b69ea39a6e3a32714690b350708414 /src/llvm_backend_opt.cpp
parent6cdec65ca1fd13a4d86d83a6715cbaaff7115cd7 (diff)
Remove dead code in the compiler
Diffstat (limited to 'src/llvm_backend_opt.cpp')
-rw-r--r--src/llvm_backend_opt.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/llvm_backend_opt.cpp b/src/llvm_backend_opt.cpp
index 533264e62..fd6d94361 100644
--- a/src/llvm_backend_opt.cpp
+++ b/src/llvm_backend_opt.cpp
@@ -37,16 +37,16 @@ gb_internal void lb_add_function_simplifcation_passes(LLVMPassManagerRef mpm, i3
gb_internal void lb_populate_module_pass_manager(LLVMTargetMachineRef target_machine, LLVMPassManagerRef mpm, i32 optimization_level);
gb_internal void lb_populate_function_pass_manager_specific(lbModule *m, LLVMPassManagerRef fpm, i32 optimization_level);
-gb_internal LLVMBool lb_must_preserve_predicate_callback(LLVMValueRef value, void *user_data) {
- lbModule *m = cast(lbModule *)user_data;
- if (m == nullptr) {
- return false;
- }
- if (value == nullptr) {
- return false;
- }
- return LLVMIsAAllocaInst(value) != nullptr;
-}
+// gb_internal LLVMBool lb_must_preserve_predicate_callback(LLVMValueRef value, void *user_data) {
+// lbModule *m = cast(lbModule *)user_data;
+// if (m == nullptr) {
+// return false;
+// }
+// if (value == nullptr) {
+// return false;
+// }
+// return LLVMIsAAllocaInst(value) != nullptr;
+// }
#if LLVM_VERSION_MAJOR < 12