@@ -11,11 +11,13 @@ pub trait MonoItemExt<'a, 'tcx> {
1111 fn define < Bx : BuilderMethods < ' a , ' tcx > > (
1212 & self ,
1313 cx : & ' a mut Bx :: CodegenCx ,
14+ cgu_name : & str ,
1415 item_data : MonoItemData ,
1516 ) ;
1617 fn predefine < Bx : BuilderMethods < ' a , ' tcx > > (
1718 & self ,
1819 cx : & ' a Bx :: CodegenCx ,
20+ cgu_name : & str ,
1921 linkage : Linkage ,
2022 visibility : Visibility ,
2123 ) ;
@@ -26,14 +28,10 @@ impl<'a, 'tcx: 'a> MonoItemExt<'a, 'tcx> for MonoItem<'tcx> {
2628 fn define < Bx : BuilderMethods < ' a , ' tcx > > (
2729 & self ,
2830 cx : & ' a mut Bx :: CodegenCx ,
31+ cgu_name : & str ,
2932 item_data : MonoItemData ,
3033 ) {
31- debug ! (
32- "BEGIN IMPLEMENTING '{} ({})' in cgu {}" ,
33- self ,
34- self . to_raw_string( ) ,
35- cx. codegen_unit( ) . name( )
36- ) ;
34+ debug ! ( "BEGIN IMPLEMENTING '{} ({})' in cgu {}" , self , self . to_raw_string( ) , cgu_name) ;
3735
3836 match * self {
3937 MonoItem :: Static ( def_id) => {
@@ -56,26 +54,17 @@ impl<'a, 'tcx: 'a> MonoItemExt<'a, 'tcx> for MonoItem<'tcx> {
5654 }
5755 }
5856
59- debug ! (
60- "END IMPLEMENTING '{} ({})' in cgu {}" ,
61- self ,
62- self . to_raw_string( ) ,
63- cx. codegen_unit( ) . name( )
64- ) ;
57+ debug ! ( "END IMPLEMENTING '{} ({})' in cgu {}" , self , self . to_raw_string( ) , cgu_name) ;
6558 }
6659
6760 fn predefine < Bx : BuilderMethods < ' a , ' tcx > > (
6861 & self ,
6962 cx : & ' a Bx :: CodegenCx ,
63+ cgu_name : & str ,
7064 linkage : Linkage ,
7165 visibility : Visibility ,
7266 ) {
73- debug ! (
74- "BEGIN PREDEFINING '{} ({})' in cgu {}" ,
75- self ,
76- self . to_raw_string( ) ,
77- cx. codegen_unit( ) . name( )
78- ) ;
67+ debug ! ( "BEGIN PREDEFINING '{} ({})' in cgu {}" , self , self . to_raw_string( ) , cgu_name) ;
7968
8069 let symbol_name = self . symbol_name ( cx. tcx ( ) ) . name ;
8170
@@ -97,12 +86,7 @@ impl<'a, 'tcx: 'a> MonoItemExt<'a, 'tcx> for MonoItem<'tcx> {
9786 MonoItem :: GlobalAsm ( ..) => { }
9887 }
9988
100- debug ! (
101- "END PREDEFINING '{} ({})' in cgu {}" ,
102- self ,
103- self . to_raw_string( ) ,
104- cx. codegen_unit( ) . name( )
105- ) ;
89+ debug ! ( "END PREDEFINING '{} ({})' in cgu {}" , self , self . to_raw_string( ) , cgu_name) ;
10690 }
10791
10892 fn to_raw_string ( & self ) -> String {
0 commit comments