@@ -395,9 +395,6 @@ pub type RustArchiveMemberRef = *mut RustArchiveMember_opaque;
395
395
#[ allow( missing_copy_implementations) ]
396
396
pub enum OperandBundleDef_opaque { }
397
397
pub type OperandBundleDefRef = * mut OperandBundleDef_opaque ;
398
- #[ allow( missing_copy_implementations) ]
399
- pub enum Attribute_opaque { }
400
- pub type AttributeRef = * mut Attribute_opaque ;
401
398
402
399
pub type DiagnosticHandler = unsafe extern "C" fn ( DiagnosticInfoRef , * mut c_void ) ;
403
400
pub type InlineAsmDiagHandler = unsafe extern "C" fn ( SMDiagnosticRef , * const c_void , c_uint ) ;
@@ -770,8 +767,6 @@ extern "C" {
770
767
Name : * const c_char )
771
768
-> ValueRef ;
772
769
773
- pub fn LLVMRustCreateAttribute ( C : ContextRef , kind : Attribute , val : u64 ) -> AttributeRef ;
774
-
775
770
// Operations on functions
776
771
pub fn LLVMAddFunction ( M : ModuleRef , Name : * const c_char , FunctionTy : TypeRef ) -> ValueRef ;
777
772
pub fn LLVMGetNamedFunction ( M : ModuleRef , Name : * const c_char ) -> ValueRef ;
@@ -790,12 +785,12 @@ extern "C" {
790
785
pub fn LLVMGetGC ( Fn : ValueRef ) -> * const c_char ;
791
786
pub fn LLVMSetGC ( Fn : ValueRef , Name : * const c_char ) ;
792
787
pub fn LLVMRustAddDereferenceableAttr ( Fn : ValueRef , index : c_uint , bytes : u64 ) ;
793
- pub fn LLVMRustAddFunctionAttribute ( Fn : ValueRef , index : c_uint , attr : AttributeRef ) ;
788
+ pub fn LLVMRustAddFunctionAttribute ( Fn : ValueRef , index : c_uint , attr : Attribute ) ;
794
789
pub fn LLVMRustAddFunctionAttrStringValue ( Fn : ValueRef ,
795
790
index : c_uint ,
796
791
Name : * const c_char ,
797
792
Value : * const c_char ) ;
798
- pub fn LLVMRustRemoveFunctionAttributes ( Fn : ValueRef , index : c_uint , attr : AttributeRef ) ;
793
+ pub fn LLVMRustRemoveFunctionAttributes ( Fn : ValueRef , index : c_uint , attr : Attribute ) ;
799
794
800
795
// Operations on parameters
801
796
pub fn LLVMCountParams ( Fn : ValueRef ) -> c_uint ;
@@ -806,8 +801,6 @@ extern "C" {
806
801
pub fn LLVMGetLastParam ( Fn : ValueRef ) -> ValueRef ;
807
802
pub fn LLVMGetNextParam ( Arg : ValueRef ) -> ValueRef ;
808
803
pub fn LLVMGetPreviousParam ( Arg : ValueRef ) -> ValueRef ;
809
- pub fn LLVMAddAttribute ( Arg : ValueRef , attr : AttributeRef ) ;
810
- pub fn LLVMRemoveAttribute ( Arg : ValueRef , attr : AttributeRef ) ;
811
804
pub fn LLVMSetParamAlignment ( Arg : ValueRef , align : c_uint ) ;
812
805
813
806
// Operations on basic blocks
@@ -851,7 +844,7 @@ extern "C" {
851
844
pub fn LLVMAddInstrAttribute ( Instr : ValueRef , index : c_uint , IA : c_uint ) ;
852
845
pub fn LLVMRemoveInstrAttribute ( Instr : ValueRef , index : c_uint , IA : c_uint ) ;
853
846
pub fn LLVMSetInstrParamAlignment ( Instr : ValueRef , index : c_uint , align : c_uint ) ;
854
- pub fn LLVMRustAddCallSiteAttribute ( Instr : ValueRef , index : c_uint , attr : AttributeRef ) ;
847
+ pub fn LLVMRustAddCallSiteAttribute ( Instr : ValueRef , index : c_uint , attr : Attribute ) ;
855
848
pub fn LLVMRustAddDereferenceableCallSiteAttr ( Instr : ValueRef , index : c_uint , bytes : u64 ) ;
856
849
857
850
// Operations on call instructions (only)
0 commit comments