Replace predefined versions WebAssembly{32,64} by general WebAssembly (#2779)

As that (+ D_LP64 for wasm64) is what DMD does, according to Petar
(https://github.com/ldc-developers/ldc/issues/2144#issuecomment-335181401).

See https://dlang.org/spec/version.html
This commit is contained in:
Martin Kinkelin 2018-07-17 10:44:48 +02:00 committed by Johan Engelen
parent 800ac4cf13
commit 9a15cb6d35

View file

@ -742,10 +742,8 @@ void registerPredefinedTargetVersions() {
VersionCondition::addPredefinedGlobalIdent("D_HardFloat");
break;
case llvm::Triple::wasm32:
VersionCondition::addPredefinedGlobalIdent("WebAssembly32");
break;
case llvm::Triple::wasm64:
VersionCondition::addPredefinedGlobalIdent("WebAssembly64");
VersionCondition::addPredefinedGlobalIdent("WebAssembly");
break;
default:
warning(Loc(), "unknown target CPU architecture: %s",