diff options
author | Simi Pallipurath <simi.pallipurath@arm.com> | 2023-07-20 10:26:45 +0100 |
---|---|---|
committer | Simi Pallipurath <simi.pallipurath@arm.com> | 2023-07-25 09:20:59 +0100 |
commit | 9dcd232f4afabdad46e5bc2d71834765acd7738c (patch) | |
tree | 3446d059db53120913fe0e4a21c977a8f0a27031 /clang/unittests/libclang/LibclangTest.cpp | |
parent | 4eff7fae60ff9c4640752ae88befcd9f6428ee10 (diff) | |
download | llvm-9dcd232f4afabdad46e5bc2d71834765acd7738c.zip llvm-9dcd232f4afabdad46e5bc2d71834765acd7738c.tar.gz llvm-9dcd232f4afabdad46e5bc2d71834765acd7738c.tar.bz2 |
[clang][driver][NFC] Call IsARMBigEndain function only for isARM and isThumb.
IsARMBIgEndian function returns true only if:
1. The triples are either arm or thumb and the
commandline has the option -mbig-endian
2. The triples are either armeb or thumbeb.
Missing the checking of arm or thumb triples in the
first case pass through the --be8 endian flag to
linker For AArch64 as well which is not expected.
This is the regression happened from the previous
patch https://reviews.llvm.org/D154786.
It is better to refactor to only call IsARMBigEndian
for isARM and isthumb satisfying conditions which
keeps ARM and AArch64 separate.
Reviewed By: MaskRay
Differential Revision: https://reviews.llvm.org/D155808
Diffstat (limited to 'clang/unittests/libclang/LibclangTest.cpp')
0 files changed, 0 insertions, 0 deletions