diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2017-11-06 04:35:31 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2017-11-06 04:35:31 +0000 |
commit | de29149e2f07c90203cd0e43a95d9cf1108dfcc4 (patch) | |
tree | 7444e01d73a0b39aac0263f4d05409df801f90a0 /lld/ELF/MarkLive.cpp | |
parent | e8be0f25c8e2887093f78d3be284094f160a224d (diff) |
ELF: Merge DefinedRegular and Defined.
Now that DefinedRegular is the only remaining derived class of
Defined, we can merge the two classes.
Differential Revision: https://reviews.llvm.org/D39667
Diffstat (limited to 'lld/ELF/MarkLive.cpp')
-rw-r--r-- | lld/ELF/MarkLive.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/ELF/MarkLive.cpp b/lld/ELF/MarkLive.cpp index 139c18ca5d4..c639198f165 100644 --- a/lld/ELF/MarkLive.cpp +++ b/lld/ELF/MarkLive.cpp @@ -64,7 +64,7 @@ static void resolveReloc(InputSectionBase &Sec, RelT &Rel, std::function<void(InputSectionBase *, uint64_t)> Fn) { Symbol &B = Sec.getFile<ELFT>()->getRelocTargetSym(Rel); - if (auto *D = dyn_cast<DefinedRegular>(&B)) { + if (auto *D = dyn_cast<Defined>(&B)) { if (!D->Section) return; uint64_t Offset = D->Value; @@ -212,7 +212,7 @@ template <class ELFT> static void doGcSections() { }; auto MarkSymbol = [&](Symbol *Sym) { - if (auto *D = dyn_cast_or_null<DefinedRegular>(Sym)) + if (auto *D = dyn_cast_or_null<Defined>(Sym)) if (auto *IS = cast_or_null<InputSectionBase>(D->Section)) Enqueue(IS, D->Value); }; |