intern identifiers
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package hir
|
||||
|
||||
import "../source"
|
||||
import "../symbol"
|
||||
import "../types"
|
||||
import "core:mem"
|
||||
|
||||
@@ -29,7 +30,7 @@ Expr :: struct {
|
||||
}
|
||||
|
||||
Local :: struct {
|
||||
name: string,
|
||||
name: symbol.Id,
|
||||
type: types.Type,
|
||||
mutable: bool,
|
||||
parameter: bool,
|
||||
@@ -53,7 +54,7 @@ Stmt :: struct {
|
||||
}
|
||||
|
||||
Function :: struct {
|
||||
name: string,
|
||||
name: symbol.Id,
|
||||
link_name: string,
|
||||
c_abi: bool,
|
||||
is_main: bool,
|
||||
@@ -68,7 +69,7 @@ Function :: struct {
|
||||
}
|
||||
|
||||
Global :: struct {
|
||||
name: string,
|
||||
name: symbol.Id,
|
||||
type: types.Type,
|
||||
expr: int,
|
||||
static_value: i64,
|
||||
|
||||
Reference in New Issue
Block a user