diff options
| author | DevJPM <jean-pierre.muench@web.de> | 2020-11-10 20:07:18 +0100 |
|---|---|---|
| committer | DevJPM <jean-pierre.muench@web.de> | 2020-11-12 14:39:47 +0100 |
| commit | 7e443c4282df6daa9c92be7d1008c974cc5ede00 (patch) | |
| tree | 38f3e8d42d3c5ca826ff4d15eb1d5f67c7f74e22 /compiler/rustc_codegen_llvm/src | |
| parent | 8236830209ca4a8cdf3a538f2cce40162ff31fc5 (diff) | |
| download | rust-7e443c4282df6daa9c92be7d1008c974cc5ede00.tar.gz rust-7e443c4282df6daa9c92be7d1008c974cc5ede00.zip | |
Dropped Support for Bidirectional Custom Target Definition Emulation
as requested in the review and argued that this is only consistent with later LLVM upgrades
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/attributes.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/compiler/rustc_codegen_llvm/src/attributes.rs b/compiler/rustc_codegen_llvm/src/attributes.rs index 3bc60c0b4d7..456fa6fc19f 100644 --- a/compiler/rustc_codegen_llvm/src/attributes.rs +++ b/compiler/rustc_codegen_llvm/src/attributes.rs @@ -144,17 +144,6 @@ fn set_probestack(cx: &CodegenCx<'ll, '_>, llfn: &'ll Value) { ); } -fn translate_obsolete_target_features(feature: &str) -> &str { - const LLVM9_FEATURE_CHANGES: &[(&str, &str)] = - &[("+fp-only-sp", "-fp64"), ("-fp-only-sp", "+fp64"), ("+d16", "-d32"), ("-d16", "+d32")]; - for &(old, new) in LLVM9_FEATURE_CHANGES { - if feature == old { - return new; - } - } - feature -} - pub fn llvm_target_features(sess: &Session) -> impl Iterator<Item = &str> { const RUSTC_SPECIFIC_FEATURES: &[&str] = &["crt-static"]; @@ -169,7 +158,6 @@ pub fn llvm_target_features(sess: &Session) -> impl Iterator<Item = &str> { .split(',') .chain(cmdline) .filter(|l| !l.is_empty()) - .map(translate_obsolete_target_features) } pub fn apply_target_cpu_attr(cx: &CodegenCx<'ll, '_>, llfn: &'ll Value) { |
