aboutsummaryrefslogtreecommitdiff
path: root/src/llvm_backend_const.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2023-09-21 16:48:00 +0100
committergingerBill <bill@gingerbill.org>2023-09-21 16:48:00 +0100
commit963559676e30b44f948b34d0fa1a13bf535c7405 (patch)
tree86e1ad66427e4d0b80386da8d12243d624f2be12 /src/llvm_backend_const.cpp
parent20ce8c4c5109548ffd161f1affbc8eb264172396 (diff)
Fix build times for `-o:<string>` in LLVM-17
Diffstat (limited to 'src/llvm_backend_const.cpp')
-rw-r--r--src/llvm_backend_const.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/llvm_backend_const.cpp b/src/llvm_backend_const.cpp
index 63debc978..f3c3871ff 100644
--- a/src/llvm_backend_const.cpp
+++ b/src/llvm_backend_const.cpp
@@ -14,17 +14,6 @@ gb_internal bool lb_is_const_or_global(lbValue value) {
if (lb_is_const(value)) {
return true;
}
- // TODO remove use of LLVMGetElementType
- #if 0
- if (LLVMGetValueKind(value.value) == LLVMGlobalVariableValueKind) {
- LLVMTypeRef t = LLVMGetElementType(LLVMTypeOf(value.value));
- if (!lb_is_type_kind(t, LLVMPointerTypeKind)) {
- return false;
- }
- LLVMTypeRef elem = LLVMGetElementType(t);
- return lb_is_type_kind(elem, LLVMFunctionTypeKind);
- }
- #endif
return false;
}