]> granicus.if.org Git - clang/commitdiff
[WebAssembly] Revert r288447.
authorDan Gohman <dan433584@gmail.com>
Sat, 3 Dec 2016 23:03:52 +0000 (23:03 +0000)
committerDan Gohman <dan433584@gmail.com>
Sat, 3 Dec 2016 23:03:52 +0000 (23:03 +0000)
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.

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

include/clang/Driver/Options.td
lib/Basic/Targets.cpp

index 0e58487a906800a342b27224cc198e2620a2edaa..316eafd68392a8bba77e275072cda70f5ad13c39 100644 (file)
@@ -1613,8 +1613,6 @@ def ffixed_x18 : Flag<["-"], "ffixed-x18">, Group<m_aarch64_Features_Group>,
 
 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]>,
index 8e026bf00ee89bababbb4758029b533c7bf6a147..9a74cdf6f2ba1e3d8dcb0cce47ddb71a6b4ce138 100644 (file)
@@ -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";