1
Fork 0

rustc_target: Stop using "string typing" for TLS models

Introduce `enum TlsModel` instead.
This commit is contained in:
Vadim Petrochenkov 2020-04-25 21:45:21 +03:00
parent 7f3b3df9e2
commit feeb75e263
12 changed files with 94 additions and 44 deletions

View file

@ -216,7 +216,7 @@ impl CodegenBackend for LlvmCodegenBackend {
}
PrintRequest::TlsModels => {
println!("Available TLS models:");
for &(name, _) in back::write::TLS_MODEL_ARGS.iter() {
for name in &["global-dynamic", "local-dynamic", "initial-exec", "local-exec"] {
println!(" {}", name);
}
println!();