summaryrefslogtreecommitdiffstats
path: root/lld/ELF/InputFiles.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lld/ELF/InputFiles.cpp')
-rw-r--r--lld/ELF/InputFiles.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/lld/ELF/InputFiles.cpp b/lld/ELF/InputFiles.cpp
index aa44fe21d46..e7e2c5f4824 100644
--- a/lld/ELF/InputFiles.cpp
+++ b/lld/ELF/InputFiles.cpp
@@ -160,14 +160,6 @@ ArrayRef<SymbolBody *> elf::ObjectFile<ELFT>::getSymbols() {
return makeArrayRef(this->SymbolBodies).slice(1);
}
-template <class ELFT> uint32_t elf::ObjectFile<ELFT>::getMipsGp0() const {
- if (ELFT::Is64Bits && MipsOptions && MipsOptions->Reginfo)
- return MipsOptions->Reginfo->ri_gp_value;
- if (!ELFT::Is64Bits && MipsReginfo && MipsReginfo->Reginfo)
- return MipsReginfo->Reginfo->ri_gp_value;
- return 0;
-}
-
template <class ELFT>
void elf::ObjectFile<ELFT>::parse(DenseSet<CachedHashStringRef> &ComdatGroups) {
// Read section and symbol tables.
@@ -348,18 +340,6 @@ elf::ObjectFile<ELFT>::createInputSection(const Elf_Shdr &Sec,
// FIXME: ARM meta-data section. At present attributes are ignored,
// they can be used to reason about object compatibility.
return &InputSection<ELFT>::Discarded;
- case SHT_MIPS_REGINFO:
- if (MipsReginfo)
- fatal(getFilename(this) +
- ": multiple SHT_MIPS_REGINFO sections are not allowed");
- MipsReginfo.reset(new MipsReginfoInputSection<ELFT>(this, &Sec, Name));
- return MipsReginfo.get();
- case SHT_MIPS_OPTIONS:
- if (MipsOptions)
- fatal(getFilename(this) +
- ": multiple SHT_MIPS_OPTIONS sections are not allowed");
- MipsOptions.reset(new MipsOptionsInputSection<ELFT>(this, &Sec, Name));
- return MipsOptions.get();
case SHT_MIPS_ABIFLAGS:
if (MipsAbiFlags)
fatal(getFilename(this) +
OpenPOWER on IntegriCloud