@@ -69,19 +69,6 @@ pub enum LLVMRustResult {
69
69
Failure ,
70
70
}
71
71
72
- /// Translation of LLVM's MachineTypes enum, defined in llvm\include\llvm\BinaryFormat\COFF.h.
73
- ///
74
- /// We include only architectures supported on Windows.
75
- #[ derive( Copy , Clone , PartialEq ) ]
76
- #[ repr( C ) ]
77
- pub enum LLVMMachineType {
78
- AMD64 = 0x8664 ,
79
- I386 = 0x14c ,
80
- ARM64 = 0xaa64 ,
81
- ARM64EC = 0xa641 ,
82
- ARM = 0x01c0 ,
83
- }
84
-
85
72
/// Must match the layout of `LLVMRustModuleFlagMergeBehavior`.
86
73
///
87
74
/// When merging modules (e.g. during LTO), their metadata flags are combined. Conflicts are
@@ -645,16 +632,6 @@ pub enum ThreadLocalMode {
645
632
LocalExec ,
646
633
}
647
634
648
- /// LLVMRustTailCallKind
649
- #[ derive( Copy , Clone ) ]
650
- #[ repr( C ) ]
651
- pub enum TailCallKind {
652
- None ,
653
- Tail ,
654
- MustTail ,
655
- NoTail ,
656
- }
657
-
658
635
/// LLVMRustChecksumKind
659
636
#[ derive( Copy , Clone ) ]
660
637
#[ repr( C ) ]
@@ -773,7 +750,6 @@ pub struct Builder<'a>(InvariantOpaque<'a>);
773
750
#[ repr( C ) ]
774
751
pub struct PassManager < ' a > ( InvariantOpaque < ' a > ) ;
775
752
unsafe extern "C" {
776
- pub type Pass ;
777
753
pub type TargetMachine ;
778
754
pub type Archive ;
779
755
}
@@ -799,7 +775,6 @@ unsafe extern "C" {
799
775
}
800
776
801
777
pub type DiagnosticHandlerTy = unsafe extern "C" fn ( & DiagnosticInfo , * mut c_void ) ;
802
- pub type InlineAsmDiagHandlerTy = unsafe extern "C" fn ( & SMDiagnostic , * const c_void , c_uint ) ;
803
778
804
779
pub mod debuginfo {
805
780
use std:: ptr;
@@ -853,7 +828,6 @@ pub mod debuginfo {
853
828
pub type DIFile = DIScope ;
854
829
pub type DILexicalBlock = DIScope ;
855
830
pub type DISubprogram = DIScope ;
856
- pub type DINameSpace = DIScope ;
857
831
pub type DIType = DIDescriptor ;
858
832
pub type DIBasicType = DIType ;
859
833
pub type DIDerivedType = DIType ;
@@ -1809,7 +1783,6 @@ unsafe extern "C" {
1809
1783
Name : * const c_char ,
1810
1784
NameLen : size_t ,
1811
1785
) -> Option < & Value > ;
1812
- pub fn LLVMRustSetTailCallKind ( CallInst : & Value , TKC : TailCallKind ) ;
1813
1786
1814
1787
// Operations on attributes
1815
1788
pub fn LLVMRustCreateAttrNoValue ( C : & Context , attr : AttributeKind ) -> & Attribute ;
@@ -2586,8 +2559,6 @@ unsafe extern "C" {
2586
2559
2587
2560
pub fn LLVMRustGetElementTypeArgIndex ( CallSite : & Value ) -> i32 ;
2588
2561
2589
- pub fn LLVMRustIsBitcode ( ptr : * const u8 , len : usize ) -> bool ;
2590
-
2591
2562
pub fn LLVMRustLLVMHasZlibCompressionForDebugSymbols ( ) -> bool ;
2592
2563
2593
2564
pub fn LLVMRustLLVMHasZstdCompressionForDebugSymbols ( ) -> bool ;
0 commit comments