We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cda615 commit 75bb895Copy full SHA for 75bb895
ir.go
@@ -389,6 +389,11 @@ func (c Context) CreateEnumAttribute(kind uint, val uint64) (a Attribute) {
389
return
390
}
391
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
+
397
func (a Attribute) GetEnumKind() (id int) {
398
id = int(C.LLVMGetEnumAttributeKind(a.C))
399
0 commit comments