summaryrefslogtreecommitdiff
path: root/lld/ELF/MarkLive.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2017-11-03 21:21:47 +0000
committerRui Ueyama <ruiu@google.com>2017-11-03 21:21:47 +0000
commitc7e6583cfc78f6d7f38498581da3badd4505b786 (patch)
treeb801e91342cf331b79147849308b2ccf2256fff8 /lld/ELF/MarkLive.cpp
parenta4857434807a280402f56349b0b3f2e36423fcf5 (diff)
Rename SymbolBody -> Symbol
Now that we have only SymbolBody as the symbol class. So, "SymbolBody" is a bit strange name now. This is a mechanical change generated by perl -i -pe s/SymbolBody/Symbol/g $(git grep -l SymbolBody lld/ELF lld/COFF) nd clang-format-diff. Differential Revision: https://reviews.llvm.org/D39459
Diffstat (limited to 'lld/ELF/MarkLive.cpp')
-rw-r--r--lld/ELF/MarkLive.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lld/ELF/MarkLive.cpp b/lld/ELF/MarkLive.cpp
index adc4c55d4c1..139c18ca5d4 100644
--- a/lld/ELF/MarkLive.cpp
+++ b/lld/ELF/MarkLive.cpp
@@ -62,7 +62,7 @@ static DenseMap<StringRef, std::vector<InputSectionBase *>> CNamedSections;
template <class ELFT, class RelT>
static void resolveReloc(InputSectionBase &Sec, RelT &Rel,
std::function<void(InputSectionBase *, uint64_t)> Fn) {
- SymbolBody &B = Sec.getFile<ELFT>()->getRelocTargetSym(Rel);
+ Symbol &B = Sec.getFile<ELFT>()->getRelocTargetSym(Rel);
if (auto *D = dyn_cast<DefinedRegular>(&B)) {
if (!D->Section)
@@ -211,7 +211,7 @@ template <class ELFT> static void doGcSections() {
Q.push_back(S);
};
- auto MarkSymbol = [&](SymbolBody *Sym) {
+ auto MarkSymbol = [&](Symbol *Sym) {
if (auto *D = dyn_cast_or_null<DefinedRegular>(Sym))
if (auto *IS = cast_or_null<InputSectionBase>(D->Section))
Enqueue(IS, D->Value);
@@ -228,7 +228,7 @@ template <class ELFT> static void doGcSections() {
// Preserve externally-visible symbols if the symbols defined by this
// file can interrupt other ELF file's symbols at runtime.
- for (SymbolBody *S : Symtab->getSymbols())
+ for (Symbol *S : Symtab->getSymbols())
if (S->includeInDynsym())
MarkSymbol(S);