@@ -404,8 +404,7 @@ pub struct SectionIterator<'a>(InvariantOpaque<'a>);
404
404
extern { pub type Pass ; }
405
405
extern { pub type TargetMachine ; }
406
406
extern { pub type Archive ; }
407
- extern { pub type ArchiveIterator ; }
408
- pub type ArchiveIteratorRef = * mut ArchiveIterator ;
407
+ pub struct ArchiveIterator < ' a > ( InvariantOpaque < ' a > ) ;
409
408
extern { pub type ArchiveChild ; }
410
409
pub type ArchiveChildRef = * mut ArchiveChild ;
411
410
extern { pub type Twine ; }
@@ -1471,12 +1470,12 @@ extern "C" {
1471
1470
pub fn LLVMRustMarkAllFunctionsNounwind ( M : & Module ) ;
1472
1471
1473
1472
pub fn LLVMRustOpenArchive ( path : * const c_char ) -> Option < & ' static mut Archive > ;
1474
- pub fn LLVMRustArchiveIteratorNew ( AR : & Archive ) -> ArchiveIteratorRef ;
1475
- pub fn LLVMRustArchiveIteratorNext ( AIR : ArchiveIteratorRef ) -> ArchiveChildRef ;
1473
+ pub fn LLVMRustArchiveIteratorNew ( AR : & ' a Archive ) -> & ' a mut ArchiveIterator < ' a > ;
1474
+ pub fn LLVMRustArchiveIteratorNext ( AIR : & ArchiveIterator ) -> ArchiveChildRef ;
1476
1475
pub fn LLVMRustArchiveChildName ( ACR : ArchiveChildRef , size : & mut size_t ) -> * const c_char ;
1477
1476
pub fn LLVMRustArchiveChildData ( ACR : ArchiveChildRef , size : & mut size_t ) -> * const c_char ;
1478
1477
pub fn LLVMRustArchiveChildFree ( ACR : ArchiveChildRef ) ;
1479
- pub fn LLVMRustArchiveIteratorFree ( AIR : ArchiveIteratorRef ) ;
1478
+ pub fn LLVMRustArchiveIteratorFree ( AIR : & ' a mut ArchiveIterator < ' a > ) ;
1480
1479
pub fn LLVMRustDestroyArchive ( AR : & ' static mut Archive ) ;
1481
1480
1482
1481
pub fn LLVMRustGetSectionName ( SI : & SectionIterator , data : & mut * const c_char ) -> size_t ;
0 commit comments