Add IsConstant to Global

This commit is contained in:
Sasha Koshka 2024-01-27 04:16:41 +00:00
parent 14a02f5e22
commit d6a5ded758
1 changed files with 6 additions and 0 deletions

View File

@ -14,6 +14,12 @@ type Global struct {
// TODO complete this
}
func (this *Global) IsConstant () {
// FIXME globals are not always constant... perhaps there is a better
// way of doing this? maybe making a separate type ConstGlobal that
// embeds Global? would have to do away with Constant member.
}
func (this *Global) Type () Type {
return &TypePointer {
AddressSpace: this.AddressSpace,