]> granicus.if.org Git - llvm/commitdiff
Revert r304117 - WebAssembly object format isn't ready to be the default
authorJacob Gravelle <jgravelle@google.com>
Fri, 2 Jun 2017 01:26:17 +0000 (01:26 +0000)
committerJacob Gravelle <jgravelle@google.com>
Fri, 2 Jun 2017 01:26:17 +0000 (01:26 +0000)
Summary: Wasm object format has some functionality regressions from the ELF format, and doesn't play nicely with the rest of the toolchain. It should eventually be the default, but not yet.

Reviewers: sunfish, sbc100

Subscribers: jfb, dschuff, llvm-commits

Differential Revision: https://reviews.llvm.org/D33811

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304512 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/Triple.cpp

index 318e21da999d95a3dc560f5bcf87597c9996aaad..f7b7ad89e95947aad802d63cdea9ae5d88dc60d3 100644 (file)
@@ -649,12 +649,10 @@ static Triple::ObjectFormatType getDefaultFormat(const Triple &T) {
   case Triple::tce:
   case Triple::tcele:
   case Triple::thumbeb:
-  case Triple::xcore:
-    return Triple::ELF;
-
   case Triple::wasm32:
   case Triple::wasm64:
-    return Triple::Wasm;
+  case Triple::xcore:
+    return Triple::ELF;
 
   case Triple::ppc:
   case Triple::ppc64: