@@ -569,16 +569,6 @@ pub enum ArchiveKind {
569
569
K_COFF ,
570
570
}
571
571
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
-
582
572
// LLVMRustThinLTOData
583
573
extern "C" {
584
574
pub type ThinLTOData ;
@@ -589,10 +579,6 @@ extern "C" {
589
579
pub type ThinLTOBuffer ;
590
580
}
591
581
592
- // LLVMRustModuleNameCallback
593
- pub type ThinLTOModuleNameCallback =
594
- unsafe extern "C" fn ( * mut c_void , * const c_char , * const c_char ) ;
595
-
596
582
/// LLVMRustThinLTOModule
597
583
#[ repr( C ) ]
598
584
pub struct ThinLTOModule {
@@ -658,9 +644,6 @@ extern "C" {
658
644
}
659
645
#[ repr( C ) ]
660
646
pub struct Builder < ' a > ( InvariantOpaque < ' a > ) ;
661
- extern "C" {
662
- pub type MemoryBuffer ;
663
- }
664
647
#[ repr( C ) ]
665
648
pub struct PassManager < ' a > ( InvariantOpaque < ' a > ) ;
666
649
extern "C" {
@@ -1013,7 +996,6 @@ extern "C" {
1013
996
pub fn LLVMSetDataLayout ( M : & Module , Triple : * const c_char ) ;
1014
997
1015
998
/// See Module::setModuleInlineAsm.
1016
- pub fn LLVMSetModuleInlineAsm2 ( M : & Module , Asm : * const c_char , AsmLen : size_t ) ;
1017
999
pub fn LLVMRustAppendModuleInlineAsm ( M : & Module , Asm : * const c_char , AsmLen : size_t ) ;
1018
1000
1019
1001
/// See llvm::LLVMTypeKind::getTypeID.
@@ -1167,7 +1149,6 @@ extern "C" {
1167
1149
pub fn LLVMGetInitializer ( GlobalVar : & Value ) -> Option < & Value > ;
1168
1150
pub fn LLVMSetInitializer < ' a > ( GlobalVar : & ' a Value , ConstantVal : & ' a Value ) ;
1169
1151
pub fn LLVMIsThreadLocal ( GlobalVar : & Value ) -> Bool ;
1170
- pub fn LLVMSetThreadLocal ( GlobalVar : & Value , IsThreadLocal : Bool ) ;
1171
1152
pub fn LLVMSetThreadLocalMode ( GlobalVar : & Value , Mode : ThreadLocalMode ) ;
1172
1153
pub fn LLVMIsGlobalConstant ( GlobalVar : & Value ) -> Bool ;
1173
1154
pub fn LLVMSetGlobalConstant ( GlobalVar : & Value , IsConstant : Bool ) ;
@@ -2246,7 +2227,6 @@ extern "C" {
2246
2227
2247
2228
pub fn LLVMIsAConstantInt ( value_ref : & Value ) -> Option < & ConstantInt > ;
2248
2229
2249
- pub fn LLVMRustPassKind ( Pass : & Pass ) -> PassKind ;
2250
2230
pub fn LLVMRustFindAndCreatePass ( Pass : * const c_char ) -> Option < & ' static mut Pass > ;
2251
2231
pub fn LLVMRustCreateAddressSanitizerFunctionPass ( Recover : bool ) -> & ' static mut Pass ;
2252
2232
pub fn LLVMRustCreateModuleAddressSanitizerPass ( Recover : bool ) -> & ' static mut Pass ;
@@ -2363,7 +2343,6 @@ extern "C" {
2363
2343
) -> LLVMRustResult ;
2364
2344
pub fn LLVMRustSetLLVMOptions ( Argc : c_int , Argv : * const * const c_char ) ;
2365
2345
pub fn LLVMRustPrintPasses ( ) ;
2366
- pub fn LLVMRustGetInstructionCount ( M : & Module ) -> u32 ;
2367
2346
pub fn LLVMRustSetNormalizedTarget ( M : & Module , triple : * const c_char ) ;
2368
2347
pub fn LLVMRustAddAlwaysInlinePass ( P : & PassManagerBuilder , AddLifetimes : bool ) ;
2369
2348
pub fn LLVMRustRunRestrictionPass ( M : & Module , syms : * const * const c_char , len : size_t ) ;
@@ -2461,7 +2440,6 @@ extern "C" {
2461
2440
pub fn LLVMRustPositionBuilderAtStart < ' a > ( B : & Builder < ' a > , BB : & ' a BasicBlock ) ;
2462
2441
2463
2442
pub fn LLVMRustSetComdat < ' a > ( M : & ' a Module , V : & ' a Value , Name : * const c_char , NameLen : size_t ) ;
2464
- pub fn LLVMRustUnsetComdat ( V : & Value ) ;
2465
2443
pub fn LLVMRustSetModulePICLevel ( M : & Module ) ;
2466
2444
pub fn LLVMRustSetModulePIELevel ( M : & Module ) ;
2467
2445
pub fn LLVMRustSetModuleCodeModel ( M : & Module , Model : CodeModel ) ;
@@ -2493,11 +2471,6 @@ extern "C" {
2493
2471
Module : & Module ,
2494
2472
Target : & TargetMachine ,
2495
2473
) -> bool ;
2496
- pub fn LLVMRustGetThinLTOModuleImports (
2497
- Data : * const ThinLTOData ,
2498
- ModuleNameCallback : ThinLTOModuleNameCallback ,
2499
- CallbackPayload : * mut c_void ,
2500
- ) ;
2501
2474
pub fn LLVMRustFreeThinLTOData ( Data : & ' static mut ThinLTOData ) ;
2502
2475
pub fn LLVMRustParseBitcodeForLTO (
2503
2476
Context : & Context ,
0 commit comments