Simplify. NFC.
authorRui Ueyama <ruiu@google.com>
Mon, 27 Mar 2017 03:41:00 +0000 (03:41 +0000)
committerRui Ueyama <ruiu@google.com>
Mon, 27 Mar 2017 03:41:00 +0000 (03:41 +0000)
commitceb5bd59ccba4b3ae9b6ea31fedb5d50435b1a88
tree0601c15efc84941ddc7aa0aa3ebe6c4b3aadba82
parent74fb7ac2e081e70ddfa2237dd84cefd680573792
Simplify. NFC.

This patch calls getAddend on a relocation only when the relocation is RELA.
That doesn't really improve runtime performance but should improve
readability as the code now matches the function description.

llvm-svn: 298828
lld/ELF/Relocations.cpp