rustc_target: Stop using "string typing" for TLS models
Introduce `enum TlsModel` instead.
This commit is contained in:
parent
7f3b3df9e2
commit
feeb75e263
12 changed files with 94 additions and 44 deletions
|
@ -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!();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue