From 98c02f7b12032e9fe7ae626f4f51def2bbf3050a Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Sat, 3 Dec 2016 23:03:52 +0000 Subject: [PATCH] [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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@288604 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Driver/Options.td | 2 -- lib/Basic/Targets.cpp | 4 ---- 2 files changed, 6 deletions(-) diff --git a/include/clang/Driver/Options.td b/include/clang/Driver/Options.td index 0e58487a90..316eafd683 100644 --- a/include/clang/Driver/Options.td +++ b/include/clang/Driver/Options.td @@ -1613,8 +1613,6 @@ def ffixed_x18 : Flag<["-"], "ffixed-x18">, Group, def msimd128 : Flag<["-"], "msimd128">, Group; def mno_simd128 : Flag<["-"], "mno-simd128">, Group; -def mdirect : Flag<["-"], "mdirect">, Group; -def mno_direct : Flag<["-"], "mno-direct">, Group; def mamdgpu_debugger_abi : Joined<["-"], "mamdgpu-debugger-abi=">, Flags<[HelpHidden]>, diff --git a/lib/Basic/Targets.cpp b/lib/Basic/Targets.cpp index 8e026bf00e..9a74cdf6f2 100644 --- a/lib/Basic/Targets.cpp +++ b/lib/Basic/Targets.cpp @@ -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"; -- 2.40.0