summaryrefslogtreecommitdiffstats
path: root/lld/ELF/InputFiles.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2016-11-09 16:55:07 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2016-11-09 16:55:07 +0000
commit6ff570a395d22d6f335ea8dd6aaad0471fc09263 (patch)
tree95d0358c93b71e96aa5bf4664c381bd4b3a240e6 /lld/ELF/InputFiles.cpp
parent470de711778d64bf4b83f9ab945a5b24158ecc3c (diff)
downloadbcm5719-llvm-6ff570a395d22d6f335ea8dd6aaad0471fc09263.tar.gz
bcm5719-llvm-6ff570a395d22d6f335ea8dd6aaad0471fc09263.zip
Make Discarded a InputSection.
It was quite confusing that it had SectionKind of Regular, but was not actually a InputSection. llvm-svn: 286379
Diffstat (limited to 'lld/ELF/InputFiles.cpp')
-rw-r--r--lld/ELF/InputFiles.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/InputFiles.cpp b/lld/ELF/InputFiles.cpp
index bedc279f4df..aa44fe21d46 100644
--- a/lld/ELF/InputFiles.cpp
+++ b/lld/ELF/InputFiles.cpp
@@ -446,7 +446,7 @@ elf::ObjectFile<ELFT>::getSection(const Elf_Sym &Sym) const {
fatal(getFilename(this) + ": invalid section index: " + Twine(Index));
}
- if (S == &InputSectionBase<ELFT>::Discarded)
+ if (S == &InputSection<ELFT>::Discarded)
return S;
return S->Repl;
}
OpenPOWER on IntegriCloud