@@ -564,12 +564,12 @@ pub enum ArchiveKind {
564
564
}
565
565
566
566
// LLVMRustThinLTOData
567
- extern "C" {
567
+ unsafe extern "C" {
568
568
pub type ThinLTOData ;
569
569
}
570
570
571
571
// LLVMRustThinLTOBuffer
572
- extern "C" {
572
+ unsafe extern "C" {
573
573
pub type ThinLTOBuffer ;
574
574
}
575
575
@@ -621,7 +621,7 @@ pub enum MemoryEffects {
621
621
InaccessibleMemOnly ,
622
622
}
623
623
624
- extern "C" {
624
+ unsafe extern "C" {
625
625
type Opaque ;
626
626
}
627
627
#[ repr( C ) ]
@@ -631,54 +631,54 @@ struct InvariantOpaque<'a> {
631
631
}
632
632
633
633
// Opaque pointer types
634
- extern "C" {
634
+ unsafe extern "C" {
635
635
pub type Module ;
636
636
}
637
- extern "C" {
637
+ unsafe extern "C" {
638
638
pub type Context ;
639
639
}
640
- extern "C" {
640
+ unsafe extern "C" {
641
641
pub type Type ;
642
642
}
643
- extern "C" {
643
+ unsafe extern "C" {
644
644
pub type Value ;
645
645
}
646
- extern "C" {
646
+ unsafe extern "C" {
647
647
pub type ConstantInt ;
648
648
}
649
- extern "C" {
649
+ unsafe extern "C" {
650
650
pub type Attribute ;
651
651
}
652
- extern "C" {
652
+ unsafe extern "C" {
653
653
pub type Metadata ;
654
654
}
655
- extern "C" {
655
+ unsafe extern "C" {
656
656
pub type BasicBlock ;
657
657
}
658
658
#[ repr( C ) ]
659
659
pub struct Builder < ' a > ( InvariantOpaque < ' a > ) ;
660
660
#[ repr( C ) ]
661
661
pub struct PassManager < ' a > ( InvariantOpaque < ' a > ) ;
662
- extern "C" {
662
+ unsafe extern "C" {
663
663
pub type Pass ;
664
664
}
665
- extern "C" {
665
+ unsafe extern "C" {
666
666
pub type TargetMachine ;
667
667
}
668
- extern "C" {
668
+ unsafe extern "C" {
669
669
pub type Archive ;
670
670
}
671
671
#[ repr( C ) ]
672
672
pub struct ArchiveIterator < ' a > ( InvariantOpaque < ' a > ) ;
673
673
#[ repr( C ) ]
674
674
pub struct ArchiveChild < ' a > ( InvariantOpaque < ' a > ) ;
675
- extern "C" {
675
+ unsafe extern "C" {
676
676
pub type Twine ;
677
677
}
678
- extern "C" {
678
+ unsafe extern "C" {
679
679
pub type DiagnosticInfo ;
680
680
}
681
- extern "C" {
681
+ unsafe extern "C" {
682
682
pub type SMDiagnostic ;
683
683
}
684
684
#[ repr( C ) ]
@@ -688,7 +688,7 @@ pub struct OperandBundleDef<'a>(InvariantOpaque<'a>);
688
688
#[ repr( C ) ]
689
689
pub struct Linker < ' a > ( InvariantOpaque < ' a > ) ;
690
690
691
- extern "C" {
691
+ unsafe extern "C" {
692
692
pub type DiagnosticHandler ;
693
693
}
694
694
@@ -823,7 +823,7 @@ bitflags! {
823
823
}
824
824
}
825
825
826
- extern "C" {
826
+ unsafe extern "C" {
827
827
pub type ModuleBuffer ;
828
828
}
829
829
@@ -834,7 +834,7 @@ pub type SelfProfileAfterPassCallback = unsafe extern "C" fn(*mut c_void);
834
834
pub type GetSymbolsCallback = unsafe extern "C" fn ( * mut c_void , * const c_char ) -> * mut c_void ;
835
835
pub type GetSymbolsErrorCallback = unsafe extern "C" fn ( * const c_char ) -> * mut c_void ;
836
836
837
- extern "C" {
837
+ unsafe extern "C" {
838
838
// Create and destroy contexts.
839
839
pub fn LLVMContextDispose ( C : & ' static mut Context ) ;
840
840
pub fn LLVMGetMDKindIDInContext ( C : & Context , Name : * const c_char , SLen : c_uint ) -> c_uint ;
@@ -1518,7 +1518,7 @@ extern "C" {
1518
1518
}
1519
1519
1520
1520
#[ link( name = "llvm-wrapper" , kind = "static" ) ]
1521
- extern "C" {
1521
+ unsafe extern "C" {
1522
1522
pub fn LLVMRustInstallErrorHandlers ( ) ;
1523
1523
pub fn LLVMRustDisableSystemDialogsOnCrash ( ) ;
1524
1524
0 commit comments