File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
compiler/rustc_codegen_llvm/src Expand file tree Collapse file tree 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};
33use libc:: c_int;
44use rustc_codegen_ssa:: target_features:: supported_target_features;
55use rustc_data_structures:: fx:: FxHashSet ;
6+ use rustc_metadata:: dynamic_lib:: DynamicLibrary ;
67use rustc_middle:: bug;
78use rustc_session:: config:: PrintRequest ;
89use rustc_session:: Session ;
910use rustc_span:: symbol:: Symbol ;
1011use rustc_target:: spec:: { MergeFunctions , PanicStrategy } ;
1112use std:: ffi:: { CStr , CString } ;
13+ use tracing:: debug;
1214
15+ use std:: path:: Path ;
1316use std:: ptr;
1417use std:: slice;
1518use std:: str;
@@ -130,7 +133,7 @@ unsafe fn configure_llvm(sess: &Session) {
130133 llvm:: LLVMInitializePasses ( ) ;
131134
132135 for plugin in & sess. opts . debugging_opts . llvm_plugins {
133- let path = path :: Path :: new ( plugin) ;
136+ let path = Path :: new ( plugin) ;
134137 let res = DynamicLibrary :: open ( path) ;
135138 match res {
136139 Ok ( _) => debug ! ( "configure_llvm: {}" , plugin) ,
You can’t perform that action at this time.
0 commit comments