fully exploited the dropped support of LLVM 8
This commit grepped for LLVM_VERSION_GE, LLVM_VERSION_LT, get_major_version and min-llvm-version and statically evaluated every expression possible (and sensible) assuming that the LLVM version is >=9 now
This commit is contained in:
parent
6830f1c6e2
commit
b51bcc72d9
9 changed files with 8 additions and 73 deletions
|
@ -147,17 +147,9 @@ 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")];
|
||||
if llvm_util::get_major_version() >= 9 {
|
||||
for &(old, new) in LLVM9_FEATURE_CHANGES {
|
||||
if feature == old {
|
||||
return new;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
for &(old, new) in LLVM9_FEATURE_CHANGES {
|
||||
if feature == new {
|
||||
return old;
|
||||
}
|
||||
for &(old, new) in LLVM9_FEATURE_CHANGES {
|
||||
if feature == old {
|
||||
return new;
|
||||
}
|
||||
}
|
||||
feature
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue