File tree 1 file changed +4
-1
lines changed
compiler/rustc_codegen_llvm/src
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -3,13 +3,16 @@ use crate::{llvm, llvm_util};
3
3
use libc:: c_int;
4
4
use rustc_codegen_ssa:: target_features:: supported_target_features;
5
5
use rustc_data_structures:: fx:: FxHashSet ;
6
+ use rustc_metadata:: dynamic_lib:: DynamicLibrary ;
6
7
use rustc_middle:: bug;
7
8
use rustc_session:: config:: PrintRequest ;
8
9
use rustc_session:: Session ;
9
10
use rustc_span:: symbol:: Symbol ;
10
11
use rustc_target:: spec:: { MergeFunctions , PanicStrategy } ;
11
12
use std:: ffi:: { CStr , CString } ;
13
+ use tracing:: debug;
12
14
15
+ use std:: path:: Path ;
13
16
use std:: ptr;
14
17
use std:: slice;
15
18
use std:: str;
@@ -130,7 +133,7 @@ unsafe fn configure_llvm(sess: &Session) {
130
133
llvm:: LLVMInitializePasses ( ) ;
131
134
132
135
for plugin in & sess. opts . debugging_opts . llvm_plugins {
133
- let path = path :: Path :: new ( plugin) ;
136
+ let path = Path :: new ( plugin) ;
134
137
let res = DynamicLibrary :: open ( path) ;
135
138
match res {
136
139
Ok ( _) => debug ! ( "configure_llvm: {}" , plugin) ,
You can’t perform that action at this time.
0 commit comments