File tree Expand file tree Collapse file tree 4 files changed +11
-7
lines changed
src/librustc/middle/trans Expand file tree Collapse file tree 4 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -3248,7 +3248,7 @@ pub fn trans_crate(sess: session::Session,
3248
3248
println ! ( "n_static_tydescs: {}" , ccx. stats. n_static_tydescs. get( ) ) ;
3249
3249
println ! ( "n_glues_created: {}" , ccx. stats. n_glues_created. get( ) ) ;
3250
3250
println ! ( "n_null_glues: {}" , ccx. stats. n_null_glues. get( ) ) ;
3251
- println ! ( "n_real_glues: {}" , ccx. stats. n_real_glues) ;
3251
+ println ! ( "n_real_glues: {}" , ccx. stats. n_real_glues. get ( ) ) ;
3252
3252
3253
3253
println ! ( "n_fns: {}" , ccx. stats. n_fns) ;
3254
3254
println ! ( "n_monos: {}" , ccx. stats. n_monos) ;
Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ pub struct Stats {
129
129
n_static_tydescs : Cell < uint > ,
130
130
n_glues_created : Cell < uint > ,
131
131
n_null_glues : Cell < uint > ,
132
- n_real_glues : uint ,
132
+ n_real_glues : Cell < uint > ,
133
133
n_fns : uint ,
134
134
n_monos : uint ,
135
135
n_inlines : uint ,
Original file line number Diff line number Diff line change @@ -214,7 +214,7 @@ impl CrateContext {
214
214
n_static_tydescs : Cell :: new ( 0 u) ,
215
215
n_glues_created : Cell :: new ( 0 u) ,
216
216
n_null_glues : Cell :: new ( 0 u) ,
217
- n_real_glues : 0 u ,
217
+ n_real_glues : Cell :: new ( 0 u ) ,
218
218
n_fns : 0 u,
219
219
n_monos : 0 u,
220
220
n_inlines : 0 u,
Original file line number Diff line number Diff line change @@ -715,7 +715,8 @@ pub fn emit_tydescs(ccx: &CrateContext) {
715
715
}
716
716
Some ( v) => {
717
717
unsafe {
718
- ccx. stats . n_real_glues += 1 u;
718
+ ccx. stats . n_real_glues . set ( ccx. stats . n_real_glues . get ( ) +
719
+ 1 ) ;
719
720
llvm:: LLVMConstPointerCast ( v, glue_fn_ty. to_ref ( ) )
720
721
}
721
722
}
@@ -729,7 +730,8 @@ pub fn emit_tydescs(ccx: &CrateContext) {
729
730
}
730
731
Some ( v) => {
731
732
unsafe {
732
- ccx. stats . n_real_glues += 1 u;
733
+ ccx. stats . n_real_glues . set ( ccx. stats . n_real_glues . get ( ) +
734
+ 1 ) ;
733
735
llvm:: LLVMConstPointerCast ( v, glue_fn_ty. to_ref ( ) )
734
736
}
735
737
}
@@ -743,7 +745,8 @@ pub fn emit_tydescs(ccx: &CrateContext) {
743
745
}
744
746
Some ( v) => {
745
747
unsafe {
746
- ccx. stats . n_real_glues += 1 u;
748
+ ccx. stats . n_real_glues . set ( ccx. stats . n_real_glues . get ( ) +
749
+ 1 ) ;
747
750
llvm:: LLVMConstPointerCast ( v, glue_fn_ty. to_ref ( ) )
748
751
}
749
752
}
@@ -757,7 +760,8 @@ pub fn emit_tydescs(ccx: &CrateContext) {
757
760
}
758
761
Some ( v) => {
759
762
unsafe {
760
- ccx. stats . n_real_glues += 1 u;
763
+ ccx. stats . n_real_glues . set ( ccx. stats . n_real_glues . get ( ) +
764
+ 1 ) ;
761
765
llvm:: LLVMConstPointerCast ( v, glue_fn_ty. to_ref ( ) )
762
766
}
763
767
}
You can’t perform that action at this time.
0 commit comments