diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2016-04-22 14:17:14 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2016-04-22 14:17:14 +0000 |
commit | ea4d17797748411a8c15a7f9b60bd0250e9dc99d (patch) | |
tree | 1fa7abe56ca82d042a973065d0fa038d53da0083 /lld/ELF/OutputSections.cpp | |
parent | bfd695d591c20242a2bd7544a0f9edb8018c7ba2 (diff) | |
download | bcm5719-llvm-ea4d17797748411a8c15a7f9b60bd0250e9dc99d.tar.gz bcm5719-llvm-ea4d17797748411a8c15a7f9b60bd0250e9dc99d.zip |
Move getRelocTarget to ObjectFile.
It doesn't use anything from the InputSection.
llvm-svn: 267154
Diffstat (limited to 'lld/ELF/OutputSections.cpp')
-rw-r--r-- | lld/ELF/OutputSections.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/OutputSections.cpp b/lld/ELF/OutputSections.cpp index 9052aec88f8..2f3707605d1 100644 --- a/lld/ELF/OutputSections.cpp +++ b/lld/ELF/OutputSections.cpp @@ -1132,7 +1132,7 @@ void EHOutputSection<ELFT>::addSectionAux(EHInputSection<ELFT> *S, } else { if (!HasReloc) fatal("FDE doesn't reference another section"); - InputSectionBase<ELFT> *Target = S->getRelocTarget(*RelI); + InputSectionBase<ELFT> *Target = S->getFile()->getRelocTarget(*RelI); if (Target && Target->Live) { uint32_t CieOffset = Offset + 4 - ID; auto I = OffsetToIndex.find(CieOffset); |