mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-13 06:41:26 -07:00
Optimize #caller_location and #location to use read only data section where possible
This commit is contained in:
@@ -1503,7 +1503,7 @@ lbValue lb_build_builtin_proc(lbProcedure *p, Ast *expr, TypeAndValue const &tv,
|
||||
pos = e->token.pos;
|
||||
|
||||
}
|
||||
return lb_emit_source_code_location(p, procedure, pos);
|
||||
return lb_emit_source_code_location_as_global(p, procedure, pos);
|
||||
}
|
||||
|
||||
case BuiltinProc_type_info_of: {
|
||||
@@ -2874,7 +2874,7 @@ lbValue lb_handle_param_value(lbProcedure *p, Type *parameter_type, ParameterVal
|
||||
if (p->entity != nullptr) {
|
||||
proc_name = p->entity->token.string;
|
||||
}
|
||||
return lb_emit_source_code_location(p, proc_name, pos);
|
||||
return lb_emit_source_code_location_as_global(p, proc_name, pos);
|
||||
}
|
||||
case ParameterValue_Value:
|
||||
return lb_build_expr(p, param_value.ast_value);
|
||||
|
||||
Reference in New Issue
Block a user