rustc_target: Stop using "string typing" for code models
Introduce `enum CodeModel` instead.
This commit is contained in:
parent
8453936049
commit
55a94bdc38
14 changed files with 107 additions and 55 deletions
|
@ -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!();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue