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:
5ffb27b
)
[LLD][ELF] - Remove dead code from handleTlsRelocation. NFC.
author
George Rimar
<grimar@accesssoftek.com>
Mon, 13 Aug 2018 13:59:06 +0000
(13:59 +0000)
committer
George Rimar
<grimar@accesssoftek.com>
Mon, 13 Aug 2018 13:59:06 +0000
(13:59 +0000)
Code is dead because R_TLSDESC_CALL is already handled in the
following block of the code:
https://github.com/llvm-mirror/lld/blob/master/ELF/Relocations.cpp#L231
llvm-svn: 339566
lld/ELF/Relocations.cpp
patch
|
blob
|
history
diff --git
a/lld/ELF/Relocations.cpp
b/lld/ELF/Relocations.cpp
index
8ab98c5
..
aeb7e98
100644
(file)
--- a/
lld/ELF/Relocations.cpp
+++ b/
lld/ELF/Relocations.cpp
@@
-276,8
+276,6
@@
handleTlsRelocation(RelType Type, Symbol &Sym, InputSectionBase &C,
return 1;
}
- if (Expr == R_TLSDESC_CALL)
- return 1;
return 0;
}