diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-01-29 20:59:10 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-01-29 20:59:10 +0000 |
commit | b025d011dd270230aeb50d7174a2a05616fe81eb (patch) | |
tree | 71544f8945a1266763fc1dfac6ac6b17433cfb39 /ELF/LinkerScript.cpp | |
parent | abe21bdf8e3c7be93c9236c3eec47756e14582bb (diff) | |
download | src-b025d011dd270230aeb50d7174a2a05616fe81eb.tar.gz src-b025d011dd270230aeb50d7174a2a05616fe81eb.zip |
Vendor import of lld release_40 branch r293443:vendor/lld/lld-release_40-r293443
Notes
Notes:
svn path=/vendor/lld/dist/; revision=312964
svn path=/vendor/lld/lld-release_40-r293443/; revision=312965; tag=vendor/lld/lld-release_40-r293443
Diffstat (limited to 'ELF/LinkerScript.cpp')
-rw-r--r-- | ELF/LinkerScript.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/ELF/LinkerScript.cpp b/ELF/LinkerScript.cpp index 887ca12537ad..3cc235386b88 100644 --- a/ELF/LinkerScript.cpp +++ b/ELF/LinkerScript.cpp @@ -918,12 +918,7 @@ const OutputSectionBase *LinkerScript<ELFT>::getSymbolSection(StringRef S) { return CurOutSec ? CurOutSec : (*OutputSections)[0]; } - if (auto *DR = dyn_cast_or_null<DefinedRegular<ELFT>>(Sym)) - return DR->Section ? DR->Section->OutSec : nullptr; - if (auto *DS = dyn_cast_or_null<DefinedSynthetic>(Sym)) - return DS->Section; - - return nullptr; + return SymbolTableSection<ELFT>::getOutputSection(Sym); } // Returns indices of ELF headers containing specific section, identified |