Rollup merge of #122442 - RalfJung:print-mono-items, r=compiler-errors
extend docs of -Zprint-mono-items Currently the values one can set this to are not documented anywhere. I think ideally this flag wouldn't overwrite the collector's behavior, a "print" flag should just print what happens but not change what happens. But our codegen-units tests rely on being able to collect all items without the other side-effects of `-C link-dead-code` and I can't tell whether that reliance is incidental or crucial, so I'm not touching this and just documenting the (messy) status quo.
This commit is contained in:
commit
8d2f79c3f1
1 changed files with 3 additions and 1 deletions
|
@ -1831,7 +1831,9 @@ options! {
|
|||
print_llvm_passes: bool = (false, parse_bool, [UNTRACKED],
|
||||
"print the LLVM optimization passes being run (default: no)"),
|
||||
print_mono_items: Option<String> = (None, parse_opt_string, [UNTRACKED],
|
||||
"print the result of the monomorphization collection pass"),
|
||||
"print the result of the monomorphization collection pass. \
|
||||
Value `lazy` means to use normal collection; `eager` means to collect all items.
|
||||
Note that this overwrites the effect `-Clink-dead-code` has on collection!"),
|
||||
print_type_sizes: bool = (false, parse_bool, [UNTRACKED],
|
||||
"print layout information for each type encountered (default: no)"),
|
||||
print_vtable_sizes: bool = (false, parse_bool, [UNTRACKED],
|
||||
|
|
Loading…
Add table
Reference in a new issue