@@ -572,16 +572,6 @@ pub enum ArchiveKind {
572572 K_COFF ,
573573}
574574
575- /// LLVMRustPassKind
576- #[ derive( Copy , Clone , PartialEq , Debug ) ]
577- #[ repr( C ) ]
578- #[ allow( dead_code) ] // Variants constructed by C++.
579- pub enum PassKind {
580- Other ,
581- Function ,
582- Module ,
583- }
584-
585575// LLVMRustThinLTOData
586576extern "C" {
587577 pub type ThinLTOData ;
@@ -592,10 +582,6 @@ extern "C" {
592582 pub type ThinLTOBuffer ;
593583}
594584
595- // LLVMRustModuleNameCallback
596- pub type ThinLTOModuleNameCallback =
597- unsafe extern "C" fn ( * mut c_void , * const c_char , * const c_char ) ;
598-
599585/// LLVMRustThinLTOModule
600586#[ repr( C ) ]
601587pub struct ThinLTOModule {
@@ -661,9 +647,6 @@ extern "C" {
661647}
662648#[ repr( C ) ]
663649pub struct Builder < ' a > ( InvariantOpaque < ' a > ) ;
664- extern "C" {
665- pub type MemoryBuffer ;
666- }
667650#[ repr( C ) ]
668651pub struct PassManager < ' a > ( InvariantOpaque < ' a > ) ;
669652extern "C" {
@@ -1032,7 +1015,6 @@ extern "C" {
10321015 pub fn LLVMSetDataLayout ( M : & Module , Triple : * const c_char ) ;
10331016
10341017 /// See Module::setModuleInlineAsm.
1035- pub fn LLVMSetModuleInlineAsm2 ( M : & Module , Asm : * const c_char , AsmLen : size_t ) ;
10361018 pub fn LLVMRustAppendModuleInlineAsm ( M : & Module , Asm : * const c_char , AsmLen : size_t ) ;
10371019
10381020 /// See llvm::LLVMTypeKind::getTypeID.
@@ -1186,7 +1168,6 @@ extern "C" {
11861168 pub fn LLVMGetInitializer ( GlobalVar : & Value ) -> Option < & Value > ;
11871169 pub fn LLVMSetInitializer < ' a > ( GlobalVar : & ' a Value , ConstantVal : & ' a Value ) ;
11881170 pub fn LLVMIsThreadLocal ( GlobalVar : & Value ) -> Bool ;
1189- pub fn LLVMSetThreadLocal ( GlobalVar : & Value , IsThreadLocal : Bool ) ;
11901171 pub fn LLVMSetThreadLocalMode ( GlobalVar : & Value , Mode : ThreadLocalMode ) ;
11911172 pub fn LLVMIsGlobalConstant ( GlobalVar : & Value ) -> Bool ;
11921173 pub fn LLVMSetGlobalConstant ( GlobalVar : & Value , IsConstant : Bool ) ;
@@ -2267,7 +2248,6 @@ extern "C" {
22672248
22682249 pub fn LLVMIsAConstantInt ( value_ref : & Value ) -> Option < & ConstantInt > ;
22692250
2270- pub fn LLVMRustPassKind ( Pass : & Pass ) -> PassKind ;
22712251 pub fn LLVMRustFindAndCreatePass ( Pass : * const c_char ) -> Option < & ' static mut Pass > ;
22722252 pub fn LLVMRustCreateAddressSanitizerFunctionPass ( Recover : bool ) -> & ' static mut Pass ;
22732253 pub fn LLVMRustCreateModuleAddressSanitizerPass ( Recover : bool ) -> & ' static mut Pass ;
@@ -2384,7 +2364,6 @@ extern "C" {
23842364 ) -> LLVMRustResult ;
23852365 pub fn LLVMRustSetLLVMOptions ( Argc : c_int , Argv : * const * const c_char ) ;
23862366 pub fn LLVMRustPrintPasses ( ) ;
2387- pub fn LLVMRustGetInstructionCount ( M : & Module ) -> u32 ;
23882367 pub fn LLVMRustSetNormalizedTarget ( M : & Module , triple : * const c_char ) ;
23892368 pub fn LLVMRustAddAlwaysInlinePass ( P : & PassManagerBuilder , AddLifetimes : bool ) ;
23902369 pub fn LLVMRustRunRestrictionPass ( M : & Module , syms : * const * const c_char , len : size_t ) ;
@@ -2482,7 +2461,6 @@ extern "C" {
24822461 pub fn LLVMRustPositionBuilderAtStart < ' a > ( B : & Builder < ' a > , BB : & ' a BasicBlock ) ;
24832462
24842463 pub fn LLVMRustSetComdat < ' a > ( M : & ' a Module , V : & ' a Value , Name : * const c_char , NameLen : size_t ) ;
2485- pub fn LLVMRustUnsetComdat ( V : & Value ) ;
24862464 pub fn LLVMRustSetModulePICLevel ( M : & Module ) ;
24872465 pub fn LLVMRustSetModulePIELevel ( M : & Module ) ;
24882466 pub fn LLVMRustSetModuleCodeModel ( M : & Module , Model : CodeModel ) ;
@@ -2514,11 +2492,6 @@ extern "C" {
25142492 Module : & Module ,
25152493 Target : & TargetMachine ,
25162494 ) -> bool ;
2517- pub fn LLVMRustGetThinLTOModuleImports (
2518- Data : * const ThinLTOData ,
2519- ModuleNameCallback : ThinLTOModuleNameCallback ,
2520- CallbackPayload : * mut c_void ,
2521- ) ;
25222495 pub fn LLVMRustFreeThinLTOData ( Data : & ' static mut ThinLTOData ) ;
25232496 pub fn LLVMRustParseBitcodeForLTO (
25242497 Context : & Context ,
0 commit comments