CTSRD-CHERI / clang

DO NOT USE. Use llvm-project instead
Other
9 stars 8 forks source link

MIPS N32 patch 3 (1,2,5 on llvm), pass ABI in triple #150

Closed KoviRobi closed 7 years ago

KoviRobi commented 7 years ago

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