mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-05 04:27:51 +00:00
Comment out a bit of code in lb_is_const_or_global
This commit is contained in:
@@ -10,11 +10,12 @@ bool lb_is_const(lbValue value) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// TODO remove use of LLVMGetElementType
|
||||
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)) {
|
||||
@@ -23,6 +24,7 @@ bool lb_is_const_or_global(lbValue value) {
|
||||
LLVMTypeRef elem = LLVMGetElementType(t);
|
||||
return lb_is_type_kind(elem, LLVMFunctionTypeKind);
|
||||
}
|
||||
#endif
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user