@@ -41,6 +41,7 @@ const borrowck_note_pure: uint = 2048;
41
41
const borrowck_note_loan: uint = 4096 ;
42
42
const no_landing_pads: uint = 8192 ;
43
43
const debug_llvm: uint = 16384 ;
44
+ const count_type_sizes: uint = 32768 ;
44
45
45
46
fn debugging_opts_map ( ) -> ~[ ( ~str , ~str , uint ) ] {
46
47
~[ ( ~"ppregions", ~"prettyprint regions with \
@@ -63,7 +64,9 @@ fn debugging_opts_map() -> ~[(~str, ~str, uint)] {
63
64
borrowck_note_loan) ,
64
65
( ~"no-landing-pads", ~"omit landing pads for unwinding",
65
66
no_landing_pads) ,
66
- ( ~"debug-llvm", ~"enable debug output from LLVM ", debug_llvm)
67
+ ( ~"debug-llvm", ~"enable debug output from LLVM ", debug_llvm) ,
68
+ ( ~"count-type-sizes", ~"count the sizes of aggregate types",
69
+ count_type_sizes)
67
70
]
68
71
}
69
72
@@ -179,6 +182,7 @@ impl session for session {
179
182
fn ppregions ( ) -> bool { self . debugging_opt ( ppregions) }
180
183
fn time_passes ( ) -> bool { self . debugging_opt ( time_passes) }
181
184
fn count_llvm_insns ( ) -> bool { self . debugging_opt ( count_llvm_insns) }
185
+ fn count_type_sizes ( ) -> bool { self . debugging_opt ( count_type_sizes) }
182
186
fn time_llvm_passes ( ) -> bool { self . debugging_opt ( time_llvm_passes) }
183
187
fn trans_stats ( ) -> bool { self . debugging_opt ( trans_stats) }
184
188
fn no_asm_comments ( ) -> bool { self . debugging_opt ( no_asm_comments) }
0 commit comments