File tree 1 file changed +8
-0
lines changed
compiler/rustc_codegen_llvm/src/llvm
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -609,6 +609,8 @@ pub(crate) enum ArchiveKind {
609
609
K_AIXBIG ,
610
610
}
611
611
612
+ pub ( crate ) const LLVMAttributeFunctionIndex : c_uint = 0 ;
613
+
612
614
unsafe extern "C" {
613
615
// LLVMRustThinLTOData
614
616
pub ( crate ) type ThinLTOData ;
@@ -1157,6 +1159,12 @@ unsafe extern "C" {
1157
1159
pub ( crate ) fn LLVMGetNamedGlobal ( M : & Module , Name : * const c_char ) -> Option < & Value > ;
1158
1160
pub ( crate ) fn LLVMGetFirstGlobal ( M : & Module ) -> Option < & Value > ;
1159
1161
pub ( crate ) fn LLVMGetNextGlobal ( GlobalVar : & Value ) -> Option < & Value > ;
1162
+
1163
+ pub ( crate ) fn LLVMGetFirstFunction ( M : & Module ) -> Option < & Value > ;
1164
+ pub ( crate ) fn LLVMGetNextFunction ( Fn : & Value ) -> Option < & Value > ;
1165
+ pub ( crate ) fn LLVMGetModuleContext ( M : & Module ) -> & Context ;
1166
+ pub ( crate ) fn LLVMAddAttributeAtIndex ( F : & Value , Idx : u32 , A : & Attribute ) ;
1167
+
1160
1168
pub ( crate ) fn LLVMDeleteGlobal ( GlobalVar : & Value ) ;
1161
1169
pub ( crate ) fn LLVMGetInitializer ( GlobalVar : & Value ) -> Option < & Value > ;
1162
1170
pub ( crate ) fn LLVMSetInitializer < ' a > ( GlobalVar : & ' a Value , ConstantVal : & ' a Value ) ;
You can’t perform that action at this time.
0 commit comments