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 | a7dbe571e686f3a8f0d97715a82a6dc648a8d3db (patch) | |
tree | 906e29c51375163e6966c01e61fe719c01f29318 | |
parent | 8e7fab044304ba1cb43f46bb1d800fdc7eb7c105 (diff) | |
download | bcm5719-llvm-a7dbe571e686f3a8f0d97715a82a6dc648a8d3db.tar.gz bcm5719-llvm-a7dbe571e686f3a8f0d97715a82a6dc648a8d3db.zip |
[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.
llvm-svn: 338718
-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: |