NVPTX/NVPTX64 is not available in LLVM 3.1.

This commit is contained in:
Kai Nacke 2014-03-05 18:54:01 +01:00
parent e735efc6aa
commit 860ac74415

View file

@ -524,12 +524,14 @@ static void registerPredefinedTargetVersions() {
VersionCondition::addPredefinedGlobalIdent("SPARC64");
VersionCondition::addPredefinedGlobalIdent("D_HardFloat");
break;
#if LDC_LLVM_VER >= 302
case llvm::Triple::nvptx:
VersionCondition::addPredefinedGlobalIdent("NVPTX");
break;
case llvm::Triple::nvptx64:
VersionCondition::addPredefinedGlobalIdent("NVPTX64");
break;
#endif
default:
error("invalid cpu architecture specified: %s", global.params.targetTriple.getArchName().str().c_str());
fatal();