Skip to content

Commit c57bcb8

Browse files
authored
Rollup merge of rust-lang#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/..`.
2 parents edeb389 + a4bf9fb commit c57bcb8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ impl CodegenBackend for CraneliftCodegenBackend {
205205
&self,
206206
ongoing_codegen: Box<dyn Any>,
207207
_sess: &Session,
208+
_outputs: &OutputFilenames,
208209
) -> Result<(CodegenResults, FxHashMap<WorkProductId, WorkProduct>), ErrorReported> {
209210
Ok(*ongoing_codegen
210211
.downcast::<(CodegenResults, FxHashMap<WorkProductId, WorkProduct>)>()

0 commit comments

Comments
 (0)