@@ -569,16 +569,6 @@ pub enum ArchiveKind {
569569 K_COFF ,
570570}
571571
572- /// LLVMRustPassKind
573- #[ derive( Copy , Clone , PartialEq , Debug ) ]
574- #[ repr( C ) ]
575- #[ allow( dead_code) ] // Variants constructed by C++.
576- pub enum PassKind {
577- Other ,
578- Function ,
579- Module ,
580- }
581-
582572// LLVMRustThinLTOData
583573extern "C" {
584574 pub type ThinLTOData ;
@@ -589,10 +579,6 @@ extern "C" {
589579 pub type ThinLTOBuffer ;
590580}
591581
592- // LLVMRustModuleNameCallback
593- pub type ThinLTOModuleNameCallback =
594- unsafe extern "C" fn ( * mut c_void , * const c_char , * const c_char ) ;
595-
596582/// LLVMRustThinLTOModule
597583#[ repr( C ) ]
598584pub struct ThinLTOModule {
@@ -658,9 +644,6 @@ extern "C" {
658644}
659645#[ repr( C ) ]
660646pub struct Builder < ' a > ( InvariantOpaque < ' a > ) ;
661- extern "C" {
662- pub type MemoryBuffer ;
663- }
664647#[ repr( C ) ]
665648pub struct PassManager < ' a > ( InvariantOpaque < ' a > ) ;
666649extern "C" {
@@ -1013,7 +996,6 @@ extern "C" {
1013996 pub fn LLVMSetDataLayout ( M : & Module , Triple : * const c_char ) ;
1014997
1015998 /// See Module::setModuleInlineAsm.
1016- pub fn LLVMSetModuleInlineAsm2 ( M : & Module , Asm : * const c_char , AsmLen : size_t ) ;
1017999 pub fn LLVMRustAppendModuleInlineAsm ( M : & Module , Asm : * const c_char , AsmLen : size_t ) ;
10181000
10191001 /// See llvm::LLVMTypeKind::getTypeID.
@@ -1167,7 +1149,6 @@ extern "C" {
11671149 pub fn LLVMGetInitializer ( GlobalVar : & Value ) -> Option < & Value > ;
11681150 pub fn LLVMSetInitializer < ' a > ( GlobalVar : & ' a Value , ConstantVal : & ' a Value ) ;
11691151 pub fn LLVMIsThreadLocal ( GlobalVar : & Value ) -> Bool ;
1170- pub fn LLVMSetThreadLocal ( GlobalVar : & Value , IsThreadLocal : Bool ) ;
11711152 pub fn LLVMSetThreadLocalMode ( GlobalVar : & Value , Mode : ThreadLocalMode ) ;
11721153 pub fn LLVMIsGlobalConstant ( GlobalVar : & Value ) -> Bool ;
11731154 pub fn LLVMSetGlobalConstant ( GlobalVar : & Value , IsConstant : Bool ) ;
@@ -2246,7 +2227,6 @@ extern "C" {
22462227
22472228 pub fn LLVMIsAConstantInt ( value_ref : & Value ) -> Option < & ConstantInt > ;
22482229
2249- pub fn LLVMRustPassKind ( Pass : & Pass ) -> PassKind ;
22502230 pub fn LLVMRustFindAndCreatePass ( Pass : * const c_char ) -> Option < & ' static mut Pass > ;
22512231 pub fn LLVMRustCreateAddressSanitizerFunctionPass ( Recover : bool ) -> & ' static mut Pass ;
22522232 pub fn LLVMRustCreateModuleAddressSanitizerPass ( Recover : bool ) -> & ' static mut Pass ;
@@ -2363,7 +2343,6 @@ extern "C" {
23632343 ) -> LLVMRustResult ;
23642344 pub fn LLVMRustSetLLVMOptions ( Argc : c_int , Argv : * const * const c_char ) ;
23652345 pub fn LLVMRustPrintPasses ( ) ;
2366- pub fn LLVMRustGetInstructionCount ( M : & Module ) -> u32 ;
23672346 pub fn LLVMRustSetNormalizedTarget ( M : & Module , triple : * const c_char ) ;
23682347 pub fn LLVMRustAddAlwaysInlinePass ( P : & PassManagerBuilder , AddLifetimes : bool ) ;
23692348 pub fn LLVMRustRunRestrictionPass ( M : & Module , syms : * const * const c_char , len : size_t ) ;
@@ -2461,7 +2440,6 @@ extern "C" {
24612440 pub fn LLVMRustPositionBuilderAtStart < ' a > ( B : & Builder < ' a > , BB : & ' a BasicBlock ) ;
24622441
24632442 pub fn LLVMRustSetComdat < ' a > ( M : & ' a Module , V : & ' a Value , Name : * const c_char , NameLen : size_t ) ;
2464- pub fn LLVMRustUnsetComdat ( V : & Value ) ;
24652443 pub fn LLVMRustSetModulePICLevel ( M : & Module ) ;
24662444 pub fn LLVMRustSetModulePIELevel ( M : & Module ) ;
24672445 pub fn LLVMRustSetModuleCodeModel ( M : & Module , Model : CodeModel ) ;
@@ -2493,11 +2471,6 @@ extern "C" {
24932471 Module : & Module ,
24942472 Target : & TargetMachine ,
24952473 ) -> bool ;
2496- pub fn LLVMRustGetThinLTOModuleImports (
2497- Data : * const ThinLTOData ,
2498- ModuleNameCallback : ThinLTOModuleNameCallback ,
2499- CallbackPayload : * mut c_void ,
2500- ) ;
25012474 pub fn LLVMRustFreeThinLTOData ( Data : & ' static mut ThinLTOData ) ;
25022475 pub fn LLVMRustParseBitcodeForLTO (
25032476 Context : & Context ,
0 commit comments