@@ -572,16 +572,6 @@ pub enum ArchiveKind {
572
572
K_COFF ,
573
573
}
574
574
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
-
585
575
// LLVMRustThinLTOData
586
576
extern "C" {
587
577
pub type ThinLTOData ;
@@ -592,10 +582,6 @@ extern "C" {
592
582
pub type ThinLTOBuffer ;
593
583
}
594
584
595
- // LLVMRustModuleNameCallback
596
- pub type ThinLTOModuleNameCallback =
597
- unsafe extern "C" fn ( * mut c_void , * const c_char , * const c_char ) ;
598
-
599
585
/// LLVMRustThinLTOModule
600
586
#[ repr( C ) ]
601
587
pub struct ThinLTOModule {
@@ -661,9 +647,6 @@ extern "C" {
661
647
}
662
648
#[ repr( C ) ]
663
649
pub struct Builder < ' a > ( InvariantOpaque < ' a > ) ;
664
- extern "C" {
665
- pub type MemoryBuffer ;
666
- }
667
650
#[ repr( C ) ]
668
651
pub struct PassManager < ' a > ( InvariantOpaque < ' a > ) ;
669
652
extern "C" {
@@ -1032,7 +1015,6 @@ extern "C" {
1032
1015
pub fn LLVMSetDataLayout ( M : & Module , Triple : * const c_char ) ;
1033
1016
1034
1017
/// See Module::setModuleInlineAsm.
1035
- pub fn LLVMSetModuleInlineAsm2 ( M : & Module , Asm : * const c_char , AsmLen : size_t ) ;
1036
1018
pub fn LLVMRustAppendModuleInlineAsm ( M : & Module , Asm : * const c_char , AsmLen : size_t ) ;
1037
1019
1038
1020
/// See llvm::LLVMTypeKind::getTypeID.
@@ -1186,7 +1168,6 @@ extern "C" {
1186
1168
pub fn LLVMGetInitializer ( GlobalVar : & Value ) -> Option < & Value > ;
1187
1169
pub fn LLVMSetInitializer < ' a > ( GlobalVar : & ' a Value , ConstantVal : & ' a Value ) ;
1188
1170
pub fn LLVMIsThreadLocal ( GlobalVar : & Value ) -> Bool ;
1189
- pub fn LLVMSetThreadLocal ( GlobalVar : & Value , IsThreadLocal : Bool ) ;
1190
1171
pub fn LLVMSetThreadLocalMode ( GlobalVar : & Value , Mode : ThreadLocalMode ) ;
1191
1172
pub fn LLVMIsGlobalConstant ( GlobalVar : & Value ) -> Bool ;
1192
1173
pub fn LLVMSetGlobalConstant ( GlobalVar : & Value , IsConstant : Bool ) ;
@@ -2267,7 +2248,6 @@ extern "C" {
2267
2248
2268
2249
pub fn LLVMIsAConstantInt ( value_ref : & Value ) -> Option < & ConstantInt > ;
2269
2250
2270
- pub fn LLVMRustPassKind ( Pass : & Pass ) -> PassKind ;
2271
2251
pub fn LLVMRustFindAndCreatePass ( Pass : * const c_char ) -> Option < & ' static mut Pass > ;
2272
2252
pub fn LLVMRustCreateAddressSanitizerFunctionPass ( Recover : bool ) -> & ' static mut Pass ;
2273
2253
pub fn LLVMRustCreateModuleAddressSanitizerPass ( Recover : bool ) -> & ' static mut Pass ;
@@ -2384,7 +2364,6 @@ extern "C" {
2384
2364
) -> LLVMRustResult ;
2385
2365
pub fn LLVMRustSetLLVMOptions ( Argc : c_int , Argv : * const * const c_char ) ;
2386
2366
pub fn LLVMRustPrintPasses ( ) ;
2387
- pub fn LLVMRustGetInstructionCount ( M : & Module ) -> u32 ;
2388
2367
pub fn LLVMRustSetNormalizedTarget ( M : & Module , triple : * const c_char ) ;
2389
2368
pub fn LLVMRustAddAlwaysInlinePass ( P : & PassManagerBuilder , AddLifetimes : bool ) ;
2390
2369
pub fn LLVMRustRunRestrictionPass ( M : & Module , syms : * const * const c_char , len : size_t ) ;
@@ -2482,7 +2461,6 @@ extern "C" {
2482
2461
pub fn LLVMRustPositionBuilderAtStart < ' a > ( B : & Builder < ' a > , BB : & ' a BasicBlock ) ;
2483
2462
2484
2463
pub fn LLVMRustSetComdat < ' a > ( M : & ' a Module , V : & ' a Value , Name : * const c_char , NameLen : size_t ) ;
2485
- pub fn LLVMRustUnsetComdat ( V : & Value ) ;
2486
2464
pub fn LLVMRustSetModulePICLevel ( M : & Module ) ;
2487
2465
pub fn LLVMRustSetModulePIELevel ( M : & Module ) ;
2488
2466
pub fn LLVMRustSetModuleCodeModel ( M : & Module , Model : CodeModel ) ;
@@ -2514,11 +2492,6 @@ extern "C" {
2514
2492
Module : & Module ,
2515
2493
Target : & TargetMachine ,
2516
2494
) -> bool ;
2517
- pub fn LLVMRustGetThinLTOModuleImports (
2518
- Data : * const ThinLTOData ,
2519
- ModuleNameCallback : ThinLTOModuleNameCallback ,
2520
- CallbackPayload : * mut c_void ,
2521
- ) ;
2522
2495
pub fn LLVMRustFreeThinLTOData ( Data : & ' static mut ThinLTOData ) ;
2523
2496
pub fn LLVMRustParseBitcodeForLTO (
2524
2497
Context : & Context ,
0 commit comments