diff options
| author | Rui Ueyama <ruiu@google.com> | 2017-02-17 03:34:17 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2017-02-17 03:34:17 +0000 |
| commit | 85c2201fc1d2caa920439d07bb8f9a81169a7a55 (patch) | |
| tree | 1ea960822606436a2b25ae7722a8a1ca6381c21f | |
| parent | 07e93d3b00a73f01d8a6c64e03b20b1578a1f339 (diff) | |
| download | bcm5719-llvm-85c2201fc1d2caa920439d07bb8f9a81169a7a55.tar.gz bcm5719-llvm-85c2201fc1d2caa920439d07bb8f9a81169a7a55.zip | |
Rename getAliases -> getSymbolsAt.
The previous name caused a little confusion because the function not
only returns aliases but a given symbol itself too.
llvm-svn: 295408
| -rw-r--r-- | lld/ELF/Relocations.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lld/ELF/Relocations.cpp b/lld/ELF/Relocations.cpp index 12603b103ba..d8a48b1f07d 100644 --- a/lld/ELF/Relocations.cpp +++ b/lld/ELF/Relocations.cpp @@ -413,13 +413,13 @@ template <class ELFT> static bool isReadOnly(SharedSymbol<ELFT> *SS) { return false; } -// Returns symbols at the same offset as a given symbol. +// Returns symbols at the same offset as a given symbol, including SS itself. // // If two or more symbols are at the same offset, and at least one of // them are copied by a copy relocation, all of them need to be copied. // Otherwise, they would refer different places at runtime. template <class ELFT> -static std::vector<SharedSymbol<ELFT> *> getAliases(SharedSymbol<ELFT> *SS) { +static std::vector<SharedSymbol<ELFT> *> getSymbolsAt(SharedSymbol<ELFT> *SS) { typedef typename ELFT::Sym Elf_Sym; std::vector<SharedSymbol<ELFT> *> Ret; @@ -456,7 +456,7 @@ template <class ELFT> static void addCopyRelSymbol(SharedSymbol<ELFT> *SS) { // Look through the DSO's dynamic symbol table for aliases and create a // dynamic symbol for each one. This causes the copy relocation to correctly // interpose any aliases. - for (SharedSymbol<ELFT> *Alias : getAliases(SS)) { + for (SharedSymbol<ELFT> *Alias : getSymbolsAt(SS)) { Alias->NeedsCopy = true; Alias->Section = ISec; Alias->symbol()->IsUsedInRegularObj = true; |

