r288604 - [WebAssembly] Revert r288447.

Dan Gohman via cfe-commits cfe-commits at lists.llvm.org
Sat Dec 3 15:03:52 PST 2016


Author: djg
Date: Sat Dec  3 17:03:52 2016
New Revision: 288604

URL: http://llvm.org/viewvc/llvm-project?rev=288604&view=rev
Log:
[WebAssembly] Revert r288447.

Revert r288447 which introduced -mdirect. It turns out we don't need a
custom flag for this, as the information we need is in the target triple.

Modified:
    cfe/trunk/include/clang/Driver/Options.td
    cfe/trunk/lib/Basic/Targets.cpp

Modified: cfe/trunk/include/clang/Driver/Options.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/Options.td?rev=288604&r1=288603&r2=288604&view=diff
==============================================================================
--- cfe/trunk/include/clang/Driver/Options.td (original)
+++ cfe/trunk/include/clang/Driver/Options.td Sat Dec  3 17:03:52 2016
@@ -1613,8 +1613,6 @@ def ffixed_x18 : Flag<["-"], "ffixed-x18
 
 def msimd128 : Flag<["-"], "msimd128">, Group<m_wasm_Features_Group>;
 def mno_simd128 : Flag<["-"], "mno-simd128">, Group<m_wasm_Features_Group>;
-def mdirect : Flag<["-"], "mdirect">, Group<m_wasm_Features_Group>;
-def mno_direct : Flag<["-"], "mno-direct">, Group<m_wasm_Features_Group>;
 
 def mamdgpu_debugger_abi : Joined<["-"], "mamdgpu-debugger-abi=">,
   Flags<[HelpHidden]>,

Modified: cfe/trunk/lib/Basic/Targets.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Targets.cpp?rev=288604&r1=288603&r2=288604&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Targets.cpp (original)
+++ cfe/trunk/lib/Basic/Targets.cpp Sat Dec  3 17:03:52 2016
@@ -8019,10 +8019,6 @@ private:
         SIMDLevel = std::min(SIMDLevel, SIMDEnum(SIMD128 - 1));
         continue;
       }
-      if (Feature == "+direct")
-        continue;
-      if (Feature == "-direct")
-        continue;
 
       Diags.Report(diag::err_opt_not_valid_with_opt) << Feature
                                                      << "-target-feature";




More information about the cfe-commits mailing list