[PATCH] D52784: [ARM][AArch64] Pass through endianness flags to the GNU assembler and linker

Peter Smith via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 12 06:24:43 PDT 2018


peter.smith updated this revision to Diff 169386.
peter.smith added a comment.

I've decided to roll the linker changes in with the assembler ones as the linker use case affects the design. It turns out that only Arm needs to check to see if the -mbig-endian and -mlittle-endian flags override the triple as computeTargetTriple() accounts for them for AArch64.

I renamed arm::appendEBLinkFlags to arm::appendBE8LinkFlag as it exclusively adds "--be8" for Armv7 and above targets.


https://reviews.llvm.org/D52784

Files:
  lib/Driver/ToolChains/Arch/ARM.cpp
  lib/Driver/ToolChains/Arch/ARM.h
  lib/Driver/ToolChains/Gnu.cpp
  lib/Driver/ToolChains/NetBSD.cpp
  test/Driver/linux-as.c
  test/Driver/linux-ld.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D52784.169386.patch
Type: text/x-patch
Size: 18382 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20181012/d721a5bc/attachment-0001.bin>


More information about the cfe-commits mailing list