diff options
| author | Nikita Popov <npopov@redhat.com> | 2023-03-01 09:20:08 +0100 |
|---|---|---|
| committer | Nikita Popov <npopov@redhat.com> | 2023-03-01 09:24:13 +0100 |
| commit | 45f694dbba5de87e64aa771e82247a8b803b8764 (patch) | |
| tree | 614ead942d5a5d116618735768021be097a09c56 /compiler/rustc_codegen_llvm/src | |
| parent | 5983a3a99ea631da9d7d1ce510a6761913f92a89 (diff) | |
| download | rust-45f694dbba5de87e64aa771e82247a8b803b8764.tar.gz rust-45f694dbba5de87e64aa771e82247a8b803b8764.zip | |
Remove pass initialization code
This is no longer necessary with the new pass manager.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/llvm/ffi.rs | 2 | ||||
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/llvm_util.rs | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/compiler/rustc_codegen_llvm/src/llvm/ffi.rs b/compiler/rustc_codegen_llvm/src/llvm/ffi.rs index 7aab666fc5e..e9e48a0f50c 100644 --- a/compiler/rustc_codegen_llvm/src/llvm/ffi.rs +++ b/compiler/rustc_codegen_llvm/src/llvm/ffi.rs @@ -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(); diff --git a/compiler/rustc_codegen_llvm/src/llvm_util.rs b/compiler/rustc_codegen_llvm/src/llvm_util.rs index 20b1dd94153..ba58a2e68e9 100644 --- a/compiler/rustc_codegen_llvm/src/llvm_util.rs +++ b/compiler/rustc_codegen_llvm/src/llvm_util.rs @@ -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()); |
