From f2c1cae5cb3c05277d6d0ccdf8c44a057d73fea9 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Tue, 23 Jan 2018 16:55:44 +0000 Subject: [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 --- llvm/lib/Support/Triple.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'llvm/lib/Support/Triple.cpp') 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"); } -- cgit v1.2.3