summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2016-01-29 02:17:01 +0000
committerRui Ueyama <ruiu@google.com>2016-01-29 02:17:01 +0000
commitc112c1be6937b4d9cfa13403056ad32bbeb7f1b3 (patch)
treea9b6eca5734e8938a4248ac1d2eb2b0f6c2c470a
parent1940424632328c9921abf328ede29cbc28f9680c (diff)
downloadbcm5719-llvm-c112c1be6937b4d9cfa13403056ad32bbeb7f1b3.tar.gz
bcm5719-llvm-c112c1be6937b4d9cfa13403056ad32bbeb7f1b3.zip
Rename includeInDynamicSymtab -> includeInDynsym.
llvm-svn: 259144
-rw-r--r--lld/ELF/OutputSections.cpp2
-rw-r--r--lld/ELF/Writer.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/lld/ELF/OutputSections.cpp b/lld/ELF/OutputSections.cpp
index 4ab8519a0cb..8e95dff91c9 100644
--- a/lld/ELF/OutputSections.cpp
+++ b/lld/ELF/OutputSections.cpp
@@ -554,7 +554,7 @@ void GnuHashTableSection<ELFT>::writeHashTable(uint8_t *Buf) {
}
static bool includeInGnuHashTable(SymbolBody *B) {
- // Assume that includeInDynamicSymtab() is already checked.
+ // Assume that includeInDynsym() is already checked.
return !B->isUndefined();
}
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp
index a35e800bd8b..47f1c6a65e4 100644
--- a/lld/ELF/Writer.cpp
+++ b/lld/ELF/Writer.cpp
@@ -681,7 +681,7 @@ template <class ELFT> static bool includeInSymtab(const SymbolBody &B) {
return true;
}
-static bool includeInDynamicSymtab(const SymbolBody &B) {
+static bool includeInDynsym(const SymbolBody &B) {
uint8_t V = B.getVisibility();
if (V != STV_DEFAULT && V != STV_PROTECTED)
return false;
@@ -884,7 +884,7 @@ template <class ELFT> bool Writer<ELFT>::createSections() {
if (Out<ELFT>::SymTab)
Out<ELFT>::SymTab->addSymbol(Body);
- if (isOutputDynamic() && includeInDynamicSymtab(*Body))
+ if (isOutputDynamic() && includeInDynsym(*Body))
Out<ELFT>::DynSymTab->addSymbol(Body);
}
OpenPOWER on IntegriCloud