mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-17 05:25:37 +03:00
Improve the usage message for -Z dump-mir.
This commit is contained in:
@@ -1272,7 +1272,13 @@ fn parse_cross_lang_lto(slot: &mut CrossLangLto, v: Option<&str>) -> bool {
|
||||
arg_align_attributes: bool = (false, parse_bool, [TRACKED],
|
||||
"emit align metadata for reference arguments"),
|
||||
dump_mir: Option<String> = (None, parse_opt_string, [UNTRACKED],
|
||||
"dump MIR state at various points in transforms"),
|
||||
"dump MIR state to file.
|
||||
`val` is used to select which passes and functions to dump. For example:
|
||||
`all` matches all passes and functions,
|
||||
`foo` matches all passes for functions whose name contains 'foo',
|
||||
`foo & ConstProp` only the 'ConstProp' pass for function names containing 'foo',
|
||||
`foo | bar` all passes for function names containing 'foo' or 'bar'."),
|
||||
|
||||
dump_mir_dir: String = (String::from("mir_dump"), parse_string, [UNTRACKED],
|
||||
"the directory the MIR is dumped into"),
|
||||
dump_mir_graphviz: bool = (false, parse_bool, [UNTRACKED],
|
||||
|
||||
Reference in New Issue
Block a user