@@ -17,7 +17,7 @@ use inkwell::{
1717 passes:: { PassManager , PassManagerBuilder } ,
1818 OptimizationLevel ,
1919} ;
20- use log:: { debug , trace, warn} ;
20+ use log:: { trace, warn} ;
2121#[ cfg( feature = "llvm" ) ]
2222use pl_linker:: { linker:: create_with_target, mun_target:: spec:: Target } ;
2323use rustc_hash:: FxHashSet ;
@@ -50,6 +50,7 @@ pub fn compile_dry(db: &dyn Db, docs: MemDocsInput) -> Option<ModWrapper> {
5050 let input = docs. get_file_params ( db, docs. file ( db) . clone ( ) , true ) ;
5151 input?;
5252 let input = input. unwrap ( ) ;
53+ log:: trace!( "entering compile_dry_file" ) ;
5354 let re = compile_dry_file ( db, input) ;
5455 // calculate find references results
5556 if docs. action ( db) != ActionType :: FindReferences {
@@ -77,7 +78,7 @@ pub fn compile_dry_file(db: &dyn Db, docs: FileCompileInput) -> Option<ModWrappe
7778 let re = docs. get_file_content ( db) ;
7879 re?;
7980 let src = re. unwrap ( ) ;
80- debug ! ( "src {:#?} id {:?}" , src. text( db) , src) ;
81+ log :: trace !( "src {:#?} id {:?}" , src. text( db) , src. path ( db ) ) ;
8182 let parse_result = parse ( db, src) ;
8283 if let Err ( e) = parse_result {
8384 log:: error!( "source code parse failed {}" , e) ;
@@ -91,6 +92,7 @@ pub fn compile_dry_file(db: &dyn Db, docs: FileCompileInput) -> Option<ModWrappe
9192 docs. docs ( db) ,
9293 docs. config ( db) ,
9394 ) ;
95+ log:: trace!( "entering emit" ) ;
9496 Some ( program. emit ( db) )
9597}
9698
0 commit comments