selfhost: add *_Drop wrappers to stdlib types; auto-drop uses _Drop instead of _Free

- Array.bux, Channel.bux, Set.bux, Map.bux: add *_Drop<T> delegating to *_Free
- hir_lower.bux: Lcx_BuildAutoDropFree searches for _Drop suffix instead of _Free
- Skip direct lowering of generic functions (only monomorphized instances)
This commit is contained in:
2026-06-10 13:25:11 +03:00
parent a2236de69a
commit d6f0a30948
5 changed files with 38 additions and 5 deletions
+4
View File
@@ -87,6 +87,10 @@ func Map_Free<K, V>(m: *Map<K, V>) {
m.len = 0;
}
func Map_Drop<K, V>(m: *Map<K, V>) {
Map_Free<K, V>(m);
}
// ---------------------------------------------------------------------------
// StringMap<V> — specialized Map for String keys, using strcmp
// ---------------------------------------------------------------------------