Skip to content

Commit a4bf9fb

Browse files
committed
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/..`.
1 parent e05ad7f commit a4bf9fb

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)