mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-12 06:18:39 +00:00
Instead of using typeid hash, use the canonical name for internal procedure for debuggability
This commit is contained in:
@@ -239,9 +239,9 @@ gb_internal lbContextData *lb_push_context_onto_stack(lbProcedure *p, lbAddr ctx
|
||||
|
||||
gb_internal String lb_internal_gen_name_from_type(char const *prefix, Type *type) {
|
||||
gbString str = gb_string_make(permanent_allocator(), prefix);
|
||||
u64 hash = type_hash_canonical_type(type);
|
||||
str = gb_string_appendc(str, "-");
|
||||
str = gb_string_append_fmt(str, "%llu", cast(unsigned long long)hash);
|
||||
str = gb_string_appendc(str, "$$");
|
||||
gbString ct = temp_canonical_string(type);
|
||||
str = gb_string_append_length(str, ct, gb_string_length(ct));
|
||||
String proc_name = make_string(cast(u8 const *)str, gb_string_length(str));
|
||||
return proc_name;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user