Fix build times for -o:<string> in LLVM-17

This commit is contained in:
gingerBill
2023-09-21 16:48:00 +01:00
parent 20ce8c4c51
commit 963559676e
6 changed files with 17 additions and 61 deletions
-11
View File
@@ -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;
}