]> granicus.if.org Git - clang/commit
[driver][mips] Adjust target triple's environment accordingly to provided ABI name
authorSimon Atanasyan <simon@atanasyan.com>
Tue, 16 Oct 2018 10:19:06 +0000 (10:19 +0000)
committerSimon Atanasyan <simon@atanasyan.com>
Tue, 16 Oct 2018 10:19:06 +0000 (10:19 +0000)
commitd4efffdb658e0c43f7a25b1792ff4e592982bcd1
tree0c407f2e2857d471fd897dc163d62e86ef50a0e0
parent4224ca2f5f7d67bfcd721a791be6da7290d7edf9
[driver][mips] Adjust target triple's environment accordingly to provided ABI name

For MIPS we need to adjust not only architecture name accordingly to ABI
provided by the `-mabi` command line option, but also modify triple's
environment. For example, for `mips-linux-gnu` triple and `-mabi=n32`
option a correct final triple is `mips64-linux-gnuabin32`.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@344603 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/Driver.cpp
test/Driver/mips-abi.c