diff options
| author | _ov4 <ov4@ov4.org> | 2026-10-17 05:30:57 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-10-17 05:30:57 +0000 |
| commit | 4dd85fd6ecd9a67e5c2b68380873e6e114714355 (patch) | |
| tree | b9dad1d0845f4c2ae7e6efed171fbee40ccd1f31 /lib/CodeGen/Builtins.h | |
| parent | e782898e420c7f2abd83b97c160194d0e70598dd (diff) | |
feat(memory): add tracked MALLOC and FREE builtins
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Diffstat (limited to 'lib/CodeGen/Builtins.h')
| -rw-r--r-- | lib/CodeGen/Builtins.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/Builtins.h b/lib/CodeGen/Builtins.h index e7f60e4..69361cf 100644 --- a/lib/CodeGen/Builtins.h +++ b/lib/CodeGen/Builtins.h @@ -26,6 +26,8 @@ inline constexpr BuiltinInfo Builtins[] = { {"NUM_TO_STR", 1, "STRING"}, {"STR_TO_NUM", 1, "REAL"}, {"EOF", 1, "BOOLEAN"}, + {"MALLOC", 1, "C_TYPE(\"void*\")"}, + {"FREE", 1, "C_TYPE(\"void*\")"}, }; inline const BuiltinInfo *findBuiltin(const std::string &Name) { |
