@@ -398,7 +398,6 @@ extern { pub type SectionIterator; }
398
398
pub type SectionIteratorRef = * mut SectionIterator ;
399
399
extern { pub type Pass ; }
400
400
extern { pub type TargetMachine ; }
401
- pub type TargetMachineRef = * const TargetMachine ;
402
401
extern { pub type Archive ; }
403
402
pub type ArchiveRef = * mut Archive ;
404
403
extern { pub type ArchiveIterator ; }
@@ -1417,10 +1416,10 @@ extern "C" {
1417
1416
pub fn LLVMRustFindAndCreatePass ( Pass : * const c_char ) -> Option < & ' static mut Pass > ;
1418
1417
pub fn LLVMRustAddPass ( PM : PassManagerRef , Pass : & ' static mut Pass ) ;
1419
1418
1420
- pub fn LLVMRustHasFeature ( T : TargetMachineRef , s : * const c_char ) -> bool ;
1419
+ pub fn LLVMRustHasFeature ( T : & TargetMachine , s : * const c_char ) -> bool ;
1421
1420
1422
- pub fn LLVMRustPrintTargetCPUs ( T : TargetMachineRef ) ;
1423
- pub fn LLVMRustPrintTargetFeatures ( T : TargetMachineRef ) ;
1421
+ pub fn LLVMRustPrintTargetCPUs ( T : & TargetMachine ) ;
1422
+ pub fn LLVMRustPrintTargetFeatures ( T : & TargetMachine ) ;
1424
1423
1425
1424
pub fn LLVMRustCreateTargetMachine ( Triple : * const c_char ,
1426
1425
CPU : * const c_char ,
@@ -1436,7 +1435,7 @@ extern "C" {
1436
1435
Singlethread : bool )
1437
1436
-> Option < & ' static mut TargetMachine > ;
1438
1437
pub fn LLVMRustDisposeTargetMachine ( T : & ' static mut TargetMachine ) ;
1439
- pub fn LLVMRustAddAnalysisPasses ( T : TargetMachineRef , PM : PassManagerRef , M : & Module ) ;
1438
+ pub fn LLVMRustAddAnalysisPasses ( T : & TargetMachine , PM : PassManagerRef , M : & Module ) ;
1440
1439
pub fn LLVMRustAddBuilderLibraryInfo ( PMB : & ' a PassManagerBuilder ,
1441
1440
M : & ' a Module ,
1442
1441
DisableSimplifyLibCalls : bool ) ;
@@ -1452,9 +1451,9 @@ extern "C" {
1452
1451
M : & Module ,
1453
1452
DisableSimplifyLibCalls : bool ) ;
1454
1453
pub fn LLVMRustRunFunctionPassManager ( PM : PassManagerRef , M : & Module ) ;
1455
- pub fn LLVMRustWriteOutputFile ( T : TargetMachineRef ,
1454
+ pub fn LLVMRustWriteOutputFile ( T : & ' a TargetMachine ,
1456
1455
PM : PassManagerRef ,
1457
- M : & Module ,
1456
+ M : & ' a Module ,
1458
1457
Output : * const c_char ,
1459
1458
FileType : FileType )
1460
1459
-> LLVMRustResult ;
@@ -1522,7 +1521,7 @@ extern "C" {
1522
1521
-> RustArchiveMemberRef ;
1523
1522
pub fn LLVMRustArchiveMemberFree ( Member : RustArchiveMemberRef ) ;
1524
1523
1525
- pub fn LLVMRustSetDataLayoutFromTargetMachine ( M : & Module , TM : TargetMachineRef ) ;
1524
+ pub fn LLVMRustSetDataLayoutFromTargetMachine ( M : & ' a Module , TM : & ' a TargetMachine ) ;
1526
1525
1527
1526
pub fn LLVMRustBuildOperandBundleDef ( Name : * const c_char ,
1528
1527
Inputs : * const & Value ,
0 commit comments