projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ed2f06
)
Remove redundant check.
author
Rui Ueyama
<ruiu@google.com>
Sun, 13 Mar 2016 03:43:32 +0000
(
03:43
+0000)
committer
Rui Ueyama
<ruiu@google.com>
Sun, 13 Mar 2016 03:43:32 +0000
(
03:43
+0000)
The control reaches here only when linking MIPS binaries.
llvm-svn: 263359
lld/ELF/InputSection.cpp
patch
|
blob
|
history
diff --git
a/lld/ELF/InputSection.cpp
b/lld/ELF/InputSection.cpp
index
adbb5fe
..
d634e7c
100644
(file)
--- a/
lld/ELF/InputSection.cpp
+++ b/
lld/ELF/InputSection.cpp
@@
-134,8
+134,6
@@
void InputSection<ELFT>::copyRelocations(uint8_t *Buf,
template <class RelTy>
static uint32_t getMipsPairType(const RelTy *Rel, const SymbolBody &Sym) {
- if (Config->EMachine != EM_MIPS)
- return R_MIPS_NONE;
switch (Rel->getType(Config->Mips64EL)) {
case R_MIPS_HI16:
return R_MIPS_LO16;