File tree Expand file tree Collapse file tree 5 files changed +12
-8
lines changed
branches/try/src/librustc/middle/trans Expand file tree Collapse file tree 5 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: 0da105a8b7b6b1e0568e8ff20f6ff4b13cc7ecc2
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: a6d3e57dca68fde4effdda3e4ae2887aa535fcd6
5
- refs/heads/try: 75efa0725d720369c3ecb552dcc63a7bad07123a
5
+ refs/heads/try: 16828bb1dc60a1d58500bb3cfc9a751339aa62ad
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
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