forked from OSchip/llvm-project
[WebAssembly] Add an -mdirect flag for the direct wasm object feature.
Add a target flag for enabling the new direct wasm object emission feature. llvm-svn: 288447
This commit is contained in:
parent
185b4ab6d4
commit
d0eed81dc0
|
@ -1613,6 +1613,8 @@ 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]>,
|
||||
|
|
|
@ -8019,6 +8019,10 @@ 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";
|
||||
|
|
Loading…
Reference in New Issue