@@ -69,19 +69,6 @@ pub enum LLVMRustResult {
6969 Failure ,
7070}
7171
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-
8572/// Must match the layout of `LLVMRustModuleFlagMergeBehavior`.
8673///
8774/// When merging modules (e.g. during LTO), their metadata flags are combined. Conflicts are
@@ -645,16 +632,6 @@ pub enum ThreadLocalMode {
645632 LocalExec ,
646633}
647634
648- /// LLVMRustTailCallKind
649- #[ derive( Copy , Clone ) ]
650- #[ repr( C ) ]
651- pub enum TailCallKind {
652- None ,
653- Tail ,
654- MustTail ,
655- NoTail ,
656- }
657-
658635/// LLVMRustChecksumKind
659636#[ derive( Copy , Clone ) ]
660637#[ repr( C ) ]
@@ -773,7 +750,6 @@ pub struct Builder<'a>(InvariantOpaque<'a>);
773750#[ repr( C ) ]
774751pub struct PassManager < ' a > ( InvariantOpaque < ' a > ) ;
775752unsafe extern "C" {
776- pub type Pass ;
777753 pub type TargetMachine ;
778754 pub type Archive ;
779755}
@@ -799,7 +775,6 @@ unsafe extern "C" {
799775}
800776
801777pub type DiagnosticHandlerTy = unsafe extern "C" fn ( & DiagnosticInfo , * mut c_void ) ;
802- pub type InlineAsmDiagHandlerTy = unsafe extern "C" fn ( & SMDiagnostic , * const c_void , c_uint ) ;
803778
804779pub mod debuginfo {
805780 use std:: ptr;
@@ -853,7 +828,6 @@ pub mod debuginfo {
853828 pub type DIFile = DIScope ;
854829 pub type DILexicalBlock = DIScope ;
855830 pub type DISubprogram = DIScope ;
856- pub type DINameSpace = DIScope ;
857831 pub type DIType = DIDescriptor ;
858832 pub type DIBasicType = DIType ;
859833 pub type DIDerivedType = DIType ;
@@ -1809,7 +1783,6 @@ unsafe extern "C" {
18091783 Name : * const c_char ,
18101784 NameLen : size_t ,
18111785 ) -> Option < & Value > ;
1812- pub fn LLVMRustSetTailCallKind ( CallInst : & Value , TKC : TailCallKind ) ;
18131786
18141787 // Operations on attributes
18151788 pub fn LLVMRustCreateAttrNoValue ( C : & Context , attr : AttributeKind ) -> & Attribute ;
@@ -2586,8 +2559,6 @@ unsafe extern "C" {
25862559
25872560 pub fn LLVMRustGetElementTypeArgIndex ( CallSite : & Value ) -> i32 ;
25882561
2589- pub fn LLVMRustIsBitcode ( ptr : * const u8 , len : usize ) -> bool ;
2590-
25912562 pub fn LLVMRustLLVMHasZlibCompressionForDebugSymbols ( ) -> bool ;
25922563
25932564 pub fn LLVMRustLLVMHasZstdCompressionForDebugSymbols ( ) -> bool ;
0 commit comments