rust/compiler/rustc_llvm
Matthias Krüger 67762ffe35
Rollup merge of #90833 - tmiasko:optimization-remarks, r=nikic
Emit LLVM optimization remarks when enabled with `-Cremark`

The default diagnostic handler considers all remarks to be disabled by
default unless configured otherwise through LLVM internal flags:
`-pass-remarks`, `-pass-remarks-missed`, and `-pass-remarks-analysis`.
This behaviour makes `-Cremark` ineffective on its own.

Fix this by configuring a custom diagnostic handler that enables
optimization remarks based on the value of `-Cremark` option. With
`-Cremark=all` enabling all remarks.

Fixes #90924.

r? `@nikic`
2021-11-28 23:45:17 +01:00
..
llvm-wrapper Rollup merge of #90833 - tmiasko:optimization-remarks, r=nikic 2021-11-28 23:45:17 +01:00
src Repace use of static_nobundle with native_link_modifiers 2021-10-23 15:51:22 +02:00
build.rs Repace use of static_nobundle with native_link_modifiers 2021-10-23 15:51:22 +02:00
Cargo.toml Migrate to 2021 2021-09-20 22:21:42 -04:00