[mips] Add '-mrelax-pic-calls', '-mno-relax-pic-calls'
authorVladimir Stefanovic <vladimir.stefanovic@rt-rk.com>
Fri, 18 Jan 2019 19:54:51 +0000 (19:54 +0000)
committerVladimir Stefanovic <vladimir.stefanovic@rt-rk.com>
Fri, 18 Jan 2019 19:54:51 +0000 (19:54 +0000)
commit99113a0ccf3dd77ccc1b3c6fd7bff986e6f376fe
treebad5a0c2d142b121d6c12de7e256f5682dd72db1
parenteaa421d1f9c3748c550e2a91fcb134a3d2a8ebff
[mips] Add '-mrelax-pic-calls', '-mno-relax-pic-calls'

These two options enable/disable emission of R_{MICRO}MIPS_JALR fixups along
with PIC calls. The linker may then try to turn PIC calls into direct jumps.
By default, these fixups do get emitted by the backend, use
'-mno-relax-pic-calls' to omit them.

Differential revision: https://reviews.llvm.org/D56878

llvm-svn: 351579
clang/include/clang/Driver/Options.td
clang/lib/Driver/ToolChains/Clang.cpp
clang/test/Driver/mips-features.c