Pass the ABI in the triple when appropriate (currently for MIPS) for
'clang -cc1' and 'clang -cc1as'
'clang -cc1' and 'clang -cc1as' will mutate the triple to account for
-target-abi if such a conversion is defined by Triple::getABIVariant().
Otherwise, the ABI will continue to be passed via
MCTargetOptions::ABIName.
Additionally, 'clang -cc1as' now applies the effect of -target-abi.
Previously it was ignored.
This is the clang side for Mips N32 support, also requires the LLVM pull request https://github.com/CTSRD-CHERI/llvm/pull/230
Commit message:
From https://reviews.llvm.org/D21070 :
Pass the ABI in the triple when appropriate (currently for MIPS) for 'clang -cc1' and 'clang -cc1as'
'clang -cc1' and 'clang -cc1as' will mutate the triple to account for -target-abi if such a conversion is defined by Triple::getABIVariant(). Otherwise, the ABI will continue to be passed via MCTargetOptions::ABIName.
Additionally, 'clang -cc1as' now applies the effect of -target-abi. Previously it was ignored.
Patch by: Daniel Sanders