diff options
| author | gingerBill <bill@gingerbill.org> | 2025-02-18 14:21:40 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2025-02-18 14:21:40 +0000 |
| commit | cc90e0cbbf5855ec629fa433ee67f6552d0251fa (patch) | |
| tree | 507264829cab8ce70c874c15cdd1cce9b3f9bd8f /src/llvm_backend_general.cpp | |
| parent | 19b59461b04f4b6b63fa24d70e9c9376b3dd3249 (diff) | |
Add `TypeWriter` stream to allow for in-place hashing and string generation
Diffstat (limited to 'src/llvm_backend_general.cpp')
| -rw-r--r-- | src/llvm_backend_general.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/llvm_backend_general.cpp b/src/llvm_backend_general.cpp index b9ae3d254..4f6fcb88e 100644 --- a/src/llvm_backend_general.cpp +++ b/src/llvm_backend_general.cpp @@ -1456,8 +1456,7 @@ gb_internal String lb_get_entity_name(lbModule *m, Entity *e) { return e->token.string; } - gbString w = gb_string_make(heap_allocator(), ""); - w = write_canonical_entity_name(w, e); + gbString w = string_canonical_entity_name(heap_allocator(), e); defer (gb_string_free(w)); String name = copy_string(permanent_allocator(), make_string(cast(u8 const *)w, gb_string_length(w))); |