@@ -393,7 +393,6 @@ extern { pub type MemoryBuffer; }
393
393
extern { pub type PassManager ; }
394
394
pub type PassManagerRef = * mut PassManager ;
395
395
extern { pub type PassManagerBuilder ; }
396
- pub type PassManagerBuilderRef = * mut PassManagerBuilder ;
397
396
extern { pub type ObjectFile ; }
398
397
extern { pub type SectionIterator ; }
399
398
pub type SectionIteratorRef = * mut SectionIterator ;
@@ -1119,23 +1118,23 @@ extern "C" {
1119
1118
1120
1119
pub fn LLVMInitializePasses ( ) ;
1121
1120
1122
- pub fn LLVMPassManagerBuilderCreate ( ) -> PassManagerBuilderRef ;
1123
- pub fn LLVMPassManagerBuilderDispose ( PMB : PassManagerBuilderRef ) ;
1124
- pub fn LLVMPassManagerBuilderSetSizeLevel ( PMB : PassManagerBuilderRef , Value : Bool ) ;
1125
- pub fn LLVMPassManagerBuilderSetDisableUnrollLoops ( PMB : PassManagerBuilderRef , Value : Bool ) ;
1126
- pub fn LLVMPassManagerBuilderUseInlinerWithThreshold ( PMB : PassManagerBuilderRef ,
1121
+ pub fn LLVMPassManagerBuilderCreate ( ) -> & ' static mut PassManagerBuilder ;
1122
+ pub fn LLVMPassManagerBuilderDispose ( PMB : & ' static mut PassManagerBuilder ) ;
1123
+ pub fn LLVMPassManagerBuilderSetSizeLevel ( PMB : & PassManagerBuilder , Value : Bool ) ;
1124
+ pub fn LLVMPassManagerBuilderSetDisableUnrollLoops ( PMB : & PassManagerBuilder , Value : Bool ) ;
1125
+ pub fn LLVMPassManagerBuilderUseInlinerWithThreshold ( PMB : & PassManagerBuilder ,
1127
1126
threshold : c_uint ) ;
1128
- pub fn LLVMPassManagerBuilderPopulateModulePassManager ( PMB : PassManagerBuilderRef ,
1127
+ pub fn LLVMPassManagerBuilderPopulateModulePassManager ( PMB : & PassManagerBuilder ,
1129
1128
PM : PassManagerRef ) ;
1130
1129
1131
- pub fn LLVMPassManagerBuilderPopulateFunctionPassManager ( PMB : PassManagerBuilderRef ,
1130
+ pub fn LLVMPassManagerBuilderPopulateFunctionPassManager ( PMB : & PassManagerBuilder ,
1132
1131
PM : PassManagerRef ) ;
1133
- pub fn LLVMPassManagerBuilderPopulateLTOPassManager ( PMB : PassManagerBuilderRef ,
1132
+ pub fn LLVMPassManagerBuilderPopulateLTOPassManager ( PMB : & PassManagerBuilder ,
1134
1133
PM : PassManagerRef ,
1135
1134
Internalize : Bool ,
1136
1135
RunInliner : Bool ) ;
1137
1136
pub fn LLVMRustPassManagerBuilderPopulateThinLTOPassManager (
1138
- PMB : PassManagerBuilderRef ,
1137
+ PMB : & PassManagerBuilder ,
1139
1138
PM : PassManagerRef ) -> bool ;
1140
1139
1141
1140
// Stuff that's in rustllvm/ because it's not upstream yet.
@@ -1439,10 +1438,10 @@ extern "C" {
1439
1438
-> Option < & ' static mut TargetMachine > ;
1440
1439
pub fn LLVMRustDisposeTargetMachine ( T : & ' static mut TargetMachine ) ;
1441
1440
pub fn LLVMRustAddAnalysisPasses ( T : TargetMachineRef , PM : PassManagerRef , M : & Module ) ;
1442
- pub fn LLVMRustAddBuilderLibraryInfo ( PMB : PassManagerBuilderRef ,
1443
- M : & Module ,
1441
+ pub fn LLVMRustAddBuilderLibraryInfo ( PMB : & ' a PassManagerBuilder ,
1442
+ M : & ' a Module ,
1444
1443
DisableSimplifyLibCalls : bool ) ;
1445
- pub fn LLVMRustConfigurePassManagerBuilder ( PMB : PassManagerBuilderRef ,
1444
+ pub fn LLVMRustConfigurePassManagerBuilder ( PMB : & PassManagerBuilder ,
1446
1445
OptLevel : CodeGenOptLevel ,
1447
1446
MergeFunctions : bool ,
1448
1447
SLPVectorize : bool ,
@@ -1470,7 +1469,7 @@ extern "C" {
1470
1469
pub fn LLVMRustSetLLVMOptions ( Argc : c_int , Argv : * const * const c_char ) ;
1471
1470
pub fn LLVMRustPrintPasses ( ) ;
1472
1471
pub fn LLVMRustSetNormalizedTarget ( M : & Module , triple : * const c_char ) ;
1473
- pub fn LLVMRustAddAlwaysInlinePass ( P : PassManagerBuilderRef , AddLifetimes : bool ) ;
1472
+ pub fn LLVMRustAddAlwaysInlinePass ( P : & PassManagerBuilder , AddLifetimes : bool ) ;
1474
1473
pub fn LLVMRustRunRestrictionPass ( M : & Module , syms : * const * const c_char , len : size_t ) ;
1475
1474
pub fn LLVMRustMarkAllFunctionsNounwind ( M : & Module ) ;
1476
1475
0 commit comments