summaryrefslogtreecommitdiffstats
path: root/lld/ELF/OutputSections.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2016-04-22 14:17:14 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2016-04-22 14:17:14 +0000
commitea4d17797748411a8c15a7f9b60bd0250e9dc99d (patch)
tree1fa7abe56ca82d042a973065d0fa038d53da0083 /lld/ELF/OutputSections.cpp
parentbfd695d591c20242a2bd7544a0f9edb8018c7ba2 (diff)
downloadbcm5719-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.cpp2
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);
OpenPOWER on IntegriCloud