Rollup merge of #108599 - nikic:drop-init, r=cuviper
Remove legacy PM leftovers This drops two leftovers of legacy PM usage: * We don't need to initialize passes anymore. * The pass listing was still using legacy PM passes. Replace it with the corresponding new PM listing.
This commit is contained in:
commit
1fab0fc4a2
3 changed files with 2 additions and 38 deletions
|
@ -1814,8 +1814,6 @@ extern "C" {
|
|||
/// Creates a legacy pass manager -- only used for final codegen.
|
||||
pub fn LLVMCreatePassManager<'a>() -> &'a mut PassManager<'a>;
|
||||
|
||||
pub fn LLVMInitializePasses();
|
||||
|
||||
pub fn LLVMTimeTraceProfilerInitialize();
|
||||
|
||||
pub fn LLVMTimeTraceProfilerFinishThread();
|
||||
|
|
|
@ -120,8 +120,6 @@ unsafe fn configure_llvm(sess: &Session) {
|
|||
llvm::LLVMTimeTraceProfilerInitialize();
|
||||
}
|
||||
|
||||
llvm::LLVMInitializePasses();
|
||||
|
||||
rustc_llvm::initialize_available_targets();
|
||||
|
||||
llvm::LLVMRustSetLLVMOptions(llvm_args.len() as c_int, llvm_args.as_ptr());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue