Hi All,
I added -EL to select little endian and -EB to select big endian ARM targets.
I also added -mlittle-endian as alias for -EL and -mbig-endian as alias for -EB.
Little endian (as e.g. for armv7):
--target=armv7
--target=armv7 -EL
--target=armv7 -mlittle-endian
--target=armebv7 -EL
--target=armebv7 -mlittle-endian
Big endian (as e.g. for armv7):
--target=armebv7
--target=armv7 -EB
--target=armv7 -mbig-endian
--target=armebv7 -EB
--target=armebv7 -mbig-endian
This patch is similar to D3215 for AArch64.
For the ARM target, I implemented the functionality in ToolChain::ComputeLLVMTriple, similar to the -mthumb option.
For the AArch64 target, I implemented the functionality in computeTargetTriple, similar to the MIPS implementation.
Please review.
Thanks,
Christian