diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2021-12-15 01:28:06 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-15 01:28:06 +0100 |
| commit | ccfc22b6d8f5241b64802a846cf2617d789925f4 (patch) | |
| tree | 63d091f9a955a00639196ca528b13e26dc53aaa3 /compiler/rustc_codegen_cranelift/src | |
| parent | d6c802ee7add3163f5b113d60cf4267d16441c73 (diff) | |
| parent | 3f2a1c9c1726d4d93e3433303262e44faa5910e9 (diff) | |
| download | rust-ccfc22b6d8f5241b64802a846cf2617d789925f4.tar.gz rust-ccfc22b6d8f5241b64802a846cf2617d789925f4.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/..`.
Diffstat (limited to 'compiler/rustc_codegen_cranelift/src')
| -rw-r--r-- | compiler/rustc_codegen_cranelift/src/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_cranelift/src/lib.rs b/compiler/rustc_codegen_cranelift/src/lib.rs index beb97edf09e..fcdf6b50764 100644 --- a/compiler/rustc_codegen_cranelift/src/lib.rs +++ b/compiler/rustc_codegen_cranelift/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>)>() |
