Move addrspace to attribute file, will put more things in there

This commit is contained in:
Sasha Koshka 2024-01-27 01:48:29 +00:00
parent f39edcca0c
commit 417c7772e4
2 changed files with 9 additions and 6 deletions

9
llvm/attribute.go Normal file
View File

@ -0,0 +1,9 @@
package llvm
import "fmt"
type AddressSpace uint64
func (space AddressSpace) String () string {
return fmt.Sprintf("addrspace(%d)", space)
}

View File

@ -174,12 +174,6 @@ func (this *TypeMetadata) String () string {
return this.LLString()
}
type AddressSpace uint64
func (space AddressSpace) String () string {
return fmt.Sprintf("addrspace(%d)", space)
}
type TypePointer struct {
AbstractType
AddressSpace AddressSpace