File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -1243,6 +1243,17 @@ func (v Value) InstructionCallConv() CallConv {
1243
1243
func (v Value ) AddCallSiteAttribute (i int , a Attribute ) {
1244
1244
C .LLVMAddCallSiteAttribute (v .C , C .LLVMAttributeIndex (i ), a .C )
1245
1245
}
1246
+ func (v Value ) GetCallSiteEnumAttribute (i int , kind uint ) (a Attribute ) {
1247
+ a .C = C .LLVMGetCallSiteEnumAttribute (v .C , C .LLVMAttributeIndex (i ), C .unsigned (kind ))
1248
+ return
1249
+ }
1250
+ func (v Value ) GetCallSiteStringAttribute (i int , kind string ) (a Attribute ) {
1251
+ ckind := C .CString (kind )
1252
+ defer C .free (unsafe .Pointer (ckind ))
1253
+ a .C = C .LLVMGetCallSiteStringAttribute (v .C , C .LLVMAttributeIndex (i ),
1254
+ ckind , C .unsigned (len (kind )))
1255
+ return
1256
+ }
1246
1257
func (v Value ) SetInstrParamAlignment (i int , align int ) {
1247
1258
C .LLVMSetInstrParamAlignment (v .C , C .unsigned (i ), C .unsigned (align ))
1248
1259
}
You can’t perform that action at this time.
0 commit comments