Move addrspace to attribute file, will put more things in there
This commit is contained in:
parent
f39edcca0c
commit
417c7772e4
9
llvm/attribute.go
Normal file
9
llvm/attribute.go
Normal file
@ -0,0 +1,9 @@
|
||||
package llvm
|
||||
|
||||
import "fmt"
|
||||
|
||||
type AddressSpace uint64
|
||||
|
||||
func (space AddressSpace) String () string {
|
||||
return fmt.Sprintf("addrspace(%d)", space)
|
||||
}
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user