1
Fork 0

rustc_target: Stop using "string typing" for code models

Introduce `enum CodeModel` instead.
This commit is contained in:
Vadim Petrochenkov 2020-05-07 03:34:27 +03:00
parent 8453936049
commit 55a94bdc38
14 changed files with 107 additions and 55 deletions

View file

@ -208,7 +208,7 @@ impl CodegenBackend for LlvmCodegenBackend {
}
PrintRequest::CodeModels => {
println!("Available code models:");
for &(name, _) in back::write::CODE_GEN_MODEL_ARGS.iter() {
for name in &["small", "kernel", "medium", "large"] {
println!(" {}", name);
}
println!();