Skip to content

Commit b17cbd3

Browse files
bjorn3RalfJung
andauthored
Add comment to make_miri_codegen_backend
Co-authored-by: Ralf Jung <[email protected]>
1 parent 1a8cdbd commit b17cbd3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/tools/miri/src/bin/miri.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,10 @@ fn run_many_seeds(
167167
}
168168
}
169169

170-
fn make_codegen_backend(opts: &Options, target: &Target) -> Box<dyn CodegenBackend> {
170+
/// Generates the codegen backend for code that Miri will interpret: we basically
171+
/// use the dummy backend, except that we put the LLVM backend in charge of
172+
/// target features.
173+
fn make_miri_codegen_backend(opts: &Options, target: &Target) -> Box<dyn CodegenBackend> {
171174
let early_dcx = EarlyDiagCtxt::new(opts.error_format);
172175

173176
// Use the target_config method of the default codegen backend (eg LLVM) to ensure the

0 commit comments

Comments
 (0)