mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-07 11:26: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",
|
||||
"S390",
|
||||
"S390X",
|
||||
#if IN_LLVM
|
||||
"SystemZ",
|
||||
#endif
|
||||
"HPPA",
|
||||
"HPPA64",
|
||||
"SH",
|
||||
|
|
|
@ -671,6 +671,13 @@ static void registerPredefinedTargetVersions() {
|
|||
VersionCondition::addPredefinedGlobalIdent("NVPTX64");
|
||||
VersionCondition::addPredefinedGlobalIdent("D_HardFloat");
|
||||
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
|
||||
default:
|
||||
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