[RISCV] Set triple based on -march flag
authorSimon Cook <simon.cook@embecosm.com>
Mon, 18 Nov 2019 10:44:13 +0000 (10:44 +0000)
committerSimon Cook <simon.cook@embecosm.com>
Mon, 18 Nov 2019 10:44:24 +0000 (10:44 +0000)
commitc00e5cf29d49e51701b00382a3f41a4dfe1c0c0f
tree71b6d2418ab239a68e487aedadd21ecb5308ab05
parent03e7fb2e075e2cfca7a0c9e3730a48d52101dec2
[RISCV] Set triple based on -march flag

For RISC-V the value provided to -march should determine whether to
compile for 32- or 64-bit RISC-V irrespective of the target provided to
the Clang driver. This adds a test for this flag for RISC-V and sets the
Target architecture correctly in these cases.

Differential Revision: https://reviews.llvm.org/D54214
clang/docs/ReleaseNotes.rst
clang/lib/Driver/Driver.cpp
clang/test/Driver/riscv-arch.c