@@ -1018,7 +1018,7 @@ extern "C" {
10181018 pub fn LLVMSetDataLayout ( M : & Module , Triple : * const c_char ) ;
10191019
10201020 /// See Module::setModuleInlineAsm.
1021- pub fn LLVMRustAppendModuleInlineAsm ( M : & Module , Asm : * const c_char , AsmLen : size_t ) ;
1021+ pub fn LLVMAppendModuleInlineAsm ( M : & Module , Asm : * const c_char , Len : size_t ) ;
10221022
10231023 /// See llvm::LLVMTypeKind::getTypeID.
10241024 pub fn LLVMRustGetTypeKind ( Ty : & Type ) -> TypeKind ;
@@ -1065,7 +1065,7 @@ extern "C" {
10651065
10661066 // Operations on other types
10671067 pub fn LLVMVoidTypeInContext ( C : & Context ) -> & Type ;
1068- pub fn LLVMRustMetadataTypeInContext ( C : & Context ) -> & Type ;
1068+ pub fn LLVMMetadataTypeInContext ( C : & Context ) -> & Type ;
10691069
10701070 // Operations on all values
10711071 pub fn LLVMTypeOf ( Val : & Value ) -> & Type ;
@@ -1084,7 +1084,12 @@ extern "C" {
10841084 pub fn LLVMGetPoison ( Ty : & Type ) -> & Value ;
10851085
10861086 // Operations on metadata
1087+ // FIXME: deprecated, replace with LLVMMDStringInContext2
10871088 pub fn LLVMMDStringInContext ( C : & Context , Str : * const c_char , SLen : c_uint ) -> & Value ;
1089+
1090+ pub fn LLVMMDStringInContext2 ( C : & Context , Str : * const c_char , SLen : size_t ) -> & Metadata ;
1091+
1092+ // FIXME: deprecated, replace with LLVMMDNodeInContext2
10881093 pub fn LLVMMDNodeInContext < ' a > (
10891094 C : & ' a Context ,
10901095 Vals : * const & ' a Value ,
@@ -1123,6 +1128,8 @@ extern "C" {
11231128 Packed : Bool ,
11241129 ) -> & ' a Value ;
11251130
1131+ // FIXME: replace with LLVMConstArray2 when bumped minimal version to llvm-17
1132+ // https://github.com/llvm/llvm-project/commit/35276f16e5a2cae0dfb49c0fbf874d4d2f177acc
11261133 pub fn LLVMConstArray < ' a > (
11271134 ElementTy : & ' a Type ,
11281135 ConstantVals : * const & ' a Value ,
@@ -1262,7 +1269,7 @@ extern "C" {
12621269 pub fn LLVMDisposeBuilder < ' a > ( Builder : & ' a mut Builder < ' a > ) ;
12631270
12641271 // Metadata
1265- pub fn LLVMSetCurrentDebugLocation < ' a > ( Builder : & Builder < ' a > , L : & ' a Value ) ;
1272+ pub fn LLVMSetCurrentDebugLocation2 < ' a > ( Builder : & Builder < ' a > , Loc : & ' a Metadata ) ;
12661273
12671274 // Terminators
12681275 pub fn LLVMBuildRetVoid < ' a > ( B : & Builder < ' a > ) -> & ' a Value ;
@@ -1302,38 +1309,38 @@ extern "C" {
13021309 pub fn LLVMBuildResume < ' a > ( B : & Builder < ' a > , Exn : & ' a Value ) -> & ' a Value ;
13031310 pub fn LLVMBuildUnreachable < ' a > ( B : & Builder < ' a > ) -> & ' a Value ;
13041311
1305- pub fn LLVMRustBuildCleanupPad < ' a > (
1312+ pub fn LLVMBuildCleanupPad < ' a > (
13061313 B : & Builder < ' a > ,
13071314 ParentPad : Option < & ' a Value > ,
1308- ArgCnt : c_uint ,
13091315 Args : * const & ' a Value ,
1316+ NumArgs : c_uint ,
13101317 Name : * const c_char ,
13111318 ) -> Option < & ' a Value > ;
1312- pub fn LLVMRustBuildCleanupRet < ' a > (
1319+ pub fn LLVMBuildCleanupRet < ' a > (
13131320 B : & Builder < ' a > ,
13141321 CleanupPad : & ' a Value ,
1315- UnwindBB : Option < & ' a BasicBlock > ,
1322+ BB : Option < & ' a BasicBlock > ,
13161323 ) -> Option < & ' a Value > ;
1317- pub fn LLVMRustBuildCatchPad < ' a > (
1324+ pub fn LLVMBuildCatchPad < ' a > (
13181325 B : & Builder < ' a > ,
13191326 ParentPad : & ' a Value ,
1320- ArgCnt : c_uint ,
13211327 Args : * const & ' a Value ,
1328+ NumArgs : c_uint ,
13221329 Name : * const c_char ,
13231330 ) -> Option < & ' a Value > ;
1324- pub fn LLVMRustBuildCatchRet < ' a > (
1331+ pub fn LLVMBuildCatchRet < ' a > (
13251332 B : & Builder < ' a > ,
1326- Pad : & ' a Value ,
1333+ CatchPad : & ' a Value ,
13271334 BB : & ' a BasicBlock ,
13281335 ) -> Option < & ' a Value > ;
1329- pub fn LLVMRustBuildCatchSwitch < ' a > (
1336+ pub fn LLVMBuildCatchSwitch < ' a > (
13301337 Builder : & Builder < ' a > ,
13311338 ParentPad : Option < & ' a Value > ,
1332- BB : Option < & ' a BasicBlock > ,
1339+ UnwindBB : Option < & ' a BasicBlock > ,
13331340 NumHandlers : c_uint ,
13341341 Name : * const c_char ,
13351342 ) -> Option < & ' a Value > ;
1336- pub fn LLVMRustAddHandler < ' a > ( CatchSwitch : & ' a Value , Handler : & ' a BasicBlock ) ;
1343+ pub fn LLVMAddHandler < ' a > ( CatchSwitch : & ' a Value , Dest : & ' a BasicBlock ) ;
13371344 pub fn LLVMSetPersonalityFn < ' a > ( Func : & ' a Value , Pers : & ' a Value ) ;
13381345
13391346 // Add a case to the switch instruction
@@ -1627,11 +1634,12 @@ extern "C" {
16271634 DestTy : & ' a Type ,
16281635 Name : * const c_char ,
16291636 ) -> & ' a Value ;
1630- pub fn LLVMRustBuildIntCast < ' a > (
1637+ pub fn LLVMBuildIntCast2 < ' a > (
16311638 B : & Builder < ' a > ,
16321639 Val : & ' a Value ,
16331640 DestTy : & ' a Type ,
1634- IsSigned : bool ,
1641+ IsSigned : Bool ,
1642+ Name : * const c_char ,
16351643 ) -> & ' a Value ;
16361644
16371645 // Comparisons
@@ -1920,7 +1928,7 @@ extern "C" {
19201928 ) ;
19211929 pub fn LLVMRustHasModuleFlag ( M : & Module , name : * const c_char , len : size_t ) -> bool ;
19221930
1923- pub fn LLVMRustMetadataAsValue < ' a > ( C : & ' a Context , MD : & ' a Metadata ) -> & ' a Value ;
1931+ pub fn LLVMMetadataAsValue < ' a > ( C : & ' a Context , MD : & ' a Metadata ) -> & ' a Value ;
19241932
19251933 pub fn LLVMRustDIBuilderCreate ( M : & Module ) -> & mut DIBuilder < ' _ > ;
19261934
0 commit comments