diff options
author | George Rimar <grimar@accesssoftek.com> | 2018-08-02 14:15:02 +0000 |
---|---|---|
committer | George Rimar <grimar@accesssoftek.com> | 2018-08-02 14:15:02 +0000 |
commit | 40f251ef74f393d7618a8e63a4589c6f05f4ff68 (patch) | |
tree | 41210b0623c6676d220e2ddde337714f4873dbf9 /lld/ELF/InputSection.cpp | |
parent | d0cd840ca3accc9d87f7363fca01ad8f2ce75165 (diff) |
[LLD][ELF] - Remove excessive cases from getRelocTargetVA(). NFC.
There is no point to explicitly proccess the expressions this patch removes.
We already have a llvm_unreachable for the default case.
Diffstat (limited to 'lld/ELF/InputSection.cpp')
-rw-r--r-- | lld/ELF/InputSection.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lld/ELF/InputSection.cpp b/lld/ELF/InputSection.cpp index db5df198a81..ed96661b2fb 100644 --- a/lld/ELF/InputSection.cpp +++ b/lld/ELF/InputSection.cpp @@ -518,11 +518,6 @@ static uint64_t getRelocTargetVA(const InputFile *File, RelType Type, int64_t A, case R_GOT_PC: case R_RELAX_TLS_GD_TO_IE: return Sym.getGotVA() + A - P; - case R_HINT: - case R_NONE: - case R_TLSDESC_CALL: - case R_TLSLD_HINT: - llvm_unreachable("cannot relocate hint relocs"); case R_MIPS_GOTREL: return Sym.getVA(A) - InX::MipsGot->getGp(File); case R_MIPS_GOT_GP: |