about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2021-12-15 01:28:06 +0100
committerGitHub <noreply@github.com>2021-12-15 01:28:06 +0100
commitc57bcb8fcba857424afe20ddf0070c7c7e820567 (patch)
tree4f313d93f96d5a8c077139b702c7d0e473406738
parentedeb3891e9c604748001f09f58bde05bb6dcf90a (diff)
parenta4bf9fbdbfd1c7ad0c725c24c913e63847410b40 (diff)
downloadrust-c57bcb8fcba857424afe20ddf0070c7c7e820567.tar.gz
rust-c57bcb8fcba857424afe20ddf0070c7c7e820567.zip
Rollup merge of #91868 - tmiasko:llvm-time-trace-out, r=oli-obk
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/..`.
-rw-r--r--src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index beb97edf09e..fcdf6b50764 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -205,6 +205,7 @@ impl CodegenBackend for CraneliftCodegenBackend {
         &self,
         ongoing_codegen: Box<dyn Any>,
         _sess: &Session,
+        _outputs: &OutputFilenames,
     ) -> Result<(CodegenResults, FxHashMap<WorkProductId, WorkProduct>), ErrorReported> {
         Ok(*ongoing_codegen
             .downcast::<(CodegenResults, FxHashMap<WorkProductId, WorkProduct>)>()