Skip to content

Commit 75bb895

Browse files
ryan-bergeraykevl
authored andcommitted
add support for CreateTypeAttribute
1 parent 5cda615 commit 75bb895

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ir.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,11 @@ func (c Context) CreateEnumAttribute(kind uint, val uint64) (a Attribute) {
389389
return
390390
}
391391

392+
func (c Context) CreateTypeAttribute(kind uint, t Type) (a Attribute) {
393+
a.C = C.LLVMCreateTypeAttribute(c.C, C.unsigned(kind), t.C)
394+
return
395+
}
396+
392397
func (a Attribute) GetEnumKind() (id int) {
393398
id = int(C.LLVMGetEnumAttributeKind(a.C))
394399
return

0 commit comments

Comments
 (0)