diff options
| author | gingerBill <bill@gingerbill.org> | 2023-09-21 16:48:00 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2023-09-21 16:48:00 +0100 |
| commit | 963559676e30b44f948b34d0fa1a13bf535c7405 (patch) | |
| tree | 86e1ad66427e4d0b80386da8d12243d624f2be12 /src/llvm_backend_const.cpp | |
| parent | 20ce8c4c5109548ffd161f1affbc8eb264172396 (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.cpp | 11 |
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; } |