about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/Linker.cpp
diff options
context:
space:
mode:
authorTomasz Miąsko <tomasz.miasko@gmail.com>2021-11-12 00:00:00 +0000
committerTomasz Miąsko <tomasz.miasko@gmail.com>2021-11-16 08:19:20 +0100
commit6846674c75530796b3d7709ff8a602e046ce08d8 (patch)
tree3f8b2942a9c5b8245a46bdca16afcac737b11191 /compiler/rustc_llvm/llvm-wrapper/Linker.cpp
parentb16ac4cbbae108bfd184569a2c50bde247d04fdf (diff)
downloadrust-6846674c75530796b3d7709ff8a602e046ce08d8.tar.gz
rust-6846674c75530796b3d7709ff8a602e046ce08d8.zip
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.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/Linker.cpp')
0 files changed, 0 insertions, 0 deletions