]> git.lizzy.rs Git - rust.git/commit
Use `OutputFilenames` to generate output file for `-Zllvm-time-trace`
authorTomasz Miąsko <tomasz.miasko@gmail.com>
Mon, 13 Dec 2021 00:00:00 +0000 (00:00 +0000)
committerTomasz Miąsko <tomasz.miasko@gmail.com>
Mon, 13 Dec 2021 00:00:00 +0000 (00:00 +0000)
commit3f2a1c9c1726d4d93e3433303262e44faa5910e9
tree6cbedd77e4dec8a5c56177afe9ddfa7509bab834
parent06a6674a7de1ef7af00b0fcdfa0d77e6c3023a27
Use `OutputFilenames` to generate output file for `-Zllvm-time-trace`

The resulting profile will include the crate name and will be stored in
the `--out-dir` directory.

This implementation makes it convenient to use LLVM time trace together
with cargo, in the contrast to the previous implementation which would
overwrite profiles or store them in `.cargo/registry/..`.
compiler/rustc_codegen_cranelift/src/lib.rs
compiler/rustc_codegen_gcc/src/lib.rs
compiler/rustc_codegen_llvm/src/lib.rs
compiler/rustc_codegen_llvm/src/llvm_util.rs
compiler/rustc_codegen_ssa/src/traits/backend.rs
compiler/rustc_interface/src/queries.rs
src/test/run-make-fulldeps/hotplug_codegen_backend/the_backend.rs