Rename DynamicReloc::getAddend() to computeAddend(). NFC
authorAlexander Richardson <arichardson.kde@gmail.com>
Mon, 19 Feb 2018 11:00:15 +0000 (11:00 +0000)
committerAlexander Richardson <arichardson.kde@gmail.com>
Mon, 19 Feb 2018 11:00:15 +0000 (11:00 +0000)
commit048e2508ad289da30008863bbb104419f8dbfe6f
tree8762815dea85c8736429d0fd38acf66aad137275
parentd3dd9cc869df61197a4734f3f0271a178df5c609
Rename DynamicReloc::getAddend() to computeAddend(). NFC

Summary:
Before the name of the function sounded like it was just a getter for the
private class member Addend. However, it actually calculates the final
value for the r_addend field in Elf_Rela that is used when writing the
.rela.dyn section. I also added a comment to the UseSymVA member to
explain how it interacts with computeAddend().

Differential Revision: https://reviews.llvm.org/D43161

llvm-svn: 325485
lld/ELF/SyntheticSections.cpp
lld/ELF/SyntheticSections.h