mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-08 03:46:02 +03:00
Add predefined version for S390.
This commit is contained in:
parent
819cb978b8
commit
a449635d4c
2 changed files with 10 additions and 0 deletions
|
@ -205,6 +205,9 @@ bool VersionCondition::isPredefined(const char *ident)
|
||||||
"SPARC64",
|
"SPARC64",
|
||||||
"S390",
|
"S390",
|
||||||
"S390X",
|
"S390X",
|
||||||
|
#if IN_LLVM
|
||||||
|
"SystemZ",
|
||||||
|
#endif
|
||||||
"HPPA",
|
"HPPA",
|
||||||
"HPPA64",
|
"HPPA64",
|
||||||
"SH",
|
"SH",
|
||||||
|
|
|
@ -671,6 +671,13 @@ static void registerPredefinedTargetVersions() {
|
||||||
VersionCondition::addPredefinedGlobalIdent("NVPTX64");
|
VersionCondition::addPredefinedGlobalIdent("NVPTX64");
|
||||||
VersionCondition::addPredefinedGlobalIdent("D_HardFloat");
|
VersionCondition::addPredefinedGlobalIdent("D_HardFloat");
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
|
#if LDC_LLVM_VER >= 303
|
||||||
|
case llvm::Triple::systemz:
|
||||||
|
VersionCondition::addPredefinedGlobalIdent("SystemZ");
|
||||||
|
VersionCondition::addPredefinedGlobalIdent("S390X"); // For backwards compatibility.
|
||||||
|
VersionCondition::addPredefinedGlobalIdent("D_HardFloat");
|
||||||
|
break;
|
||||||
#endif
|
#endif
|
||||||
default:
|
default:
|
||||||
error(Loc(), "invalid cpu architecture specified: %s", global.params.targetTriple.getArchName().str().c_str());
|
error(Loc(), "invalid cpu architecture specified: %s", global.params.targetTriple.getArchName().str().c_str());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue