Add a target flag for enabling the new direct wasm object emission
feature.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@288447
91177308-0d34-0410-b5e6-
96231b3b80d8
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]>,
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";