Skip to content

Commit b76d8b5

Browse files
ryan-bergeraykevl
authored andcommitted
support LLVMGetTypeAttributeValue
1 parent 75bb895 commit b76d8b5

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
@@ -394,6 +394,11 @@ func (c Context) CreateTypeAttribute(kind uint, t Type) (a Attribute) {
394394
return
395395
}
396396

397+
func (a Attribute) GetTypeValue() (t Type) {
398+
t.C = C.LLVMGetTypeAttributeValue(a.C)
399+
return
400+
}
401+
397402
func (a Attribute) GetEnumKind() (id int) {
398403
id = int(C.LLVMGetEnumAttributeKind(a.C))
399404
return

0 commit comments

Comments
 (0)