summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Triple.cpp
diff options
context:
space:
mode:
authorDan Gohman <dan433584@gmail.com>2018-01-23 16:55:44 +0000
committerDan Gohman <dan433584@gmail.com>2018-01-23 16:55:44 +0000
commitf2c1cae5cb3c05277d6d0ccdf8c44a057d73fea9 (patch)
tree4a970610e2ec93f7a2ccfc4f90846b5d3fe467c3 /llvm/lib/Support/Triple.cpp
parenteac1c02d2a1ae550c1f53ae16d775b1a839b5a92 (diff)
downloadbcm5719-llvm-f2c1cae5cb3c05277d6d0ccdf8c44a057d73fea9.tar.gz
bcm5719-llvm-f2c1cae5cb3c05277d6d0ccdf8c44a057d73fea9.zip
[WebAssembly] Switch to *-wasm as the default target triple.
This makes wasm32-unknown-unknown-wasm the default, which supports the .o file writer and the new linking ABI. To enable s2wasm-compatible output, use the wasm32-unknown-unknown-elf triple. llvm-svn: 323220
Diffstat (limited to 'llvm/lib/Support/Triple.cpp')
-rw-r--r--llvm/lib/Support/Triple.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/Support/Triple.cpp b/llvm/lib/Support/Triple.cpp
index 4f0a30042b7..b54ed40f057 100644
--- a/llvm/lib/Support/Triple.cpp
+++ b/llvm/lib/Support/Triple.cpp
@@ -670,8 +670,6 @@ static Triple::ObjectFormatType getDefaultFormat(const Triple &T) {
case Triple::tce:
case Triple::tcele:
case Triple::thumbeb:
- case Triple::wasm32:
- case Triple::wasm64:
case Triple::xcore:
return Triple::ELF;
@@ -680,6 +678,10 @@ static Triple::ObjectFormatType getDefaultFormat(const Triple &T) {
if (T.isOSDarwin())
return Triple::MachO;
return Triple::ELF;
+
+ case Triple::wasm32:
+ case Triple::wasm64:
+ return Triple::Wasm;
}
llvm_unreachable("unknown architecture");
}
OpenPOWER on IntegriCloud