diff options
author | Peter Smith <peter.smith@linaro.org> | 2017-06-19 09:43:43 +0000 |
---|---|---|
committer | Peter Smith <peter.smith@linaro.org> | 2017-06-19 09:43:43 +0000 |
commit | 9873c4b509a8fbf536e6b8c52eb8329a6d1d383c (patch) | |
tree | e700f539c3714102bbc9e7d3d092853325896159 /llvm/lib/CodeGen/MacroFusion.cpp | |
parent | 621894ac76c2ebfaf9c6a601c21550bdf3dc50d6 (diff) | |
download | llvm-9873c4b509a8fbf536e6b8c52eb8329a6d1d383c.zip llvm-9873c4b509a8fbf536e6b8c52eb8329a6d1d383c.tar.gz llvm-9873c4b509a8fbf536e6b8c52eb8329a6d1d383c.tar.bz2 |
[ELF] make default for get{ARM,AArch64}UndefinedRelativeWeakVA unreachable
The get{ARM,AArch64}UndefinedRelativeWeakVA() functions should only be
called for PC-relative relocations. Complete the supported pc-relative
relocations in the switch statement and make the default case unreachable.
The R_ARM_TARGET relocation can be evaluated as R_ARM_REL32 but it is only
used in the context of exception tables, and is never output with respect
to a weak reference so it does not appear in the switch statement.
Differential Revision: https://reviews.llvm.org/D34138
llvm-svn: 305673
Diffstat (limited to 'llvm/lib/CodeGen/MacroFusion.cpp')
0 files changed, 0 insertions, 0 deletions