summaryrefslogtreecommitdiffstats
path: root/lld/ELF/Symbols.h
diff options
context:
space:
mode:
Diffstat (limited to 'lld/ELF/Symbols.h')
-rw-r--r--lld/ELF/Symbols.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/lld/ELF/Symbols.h b/lld/ELF/Symbols.h
index 23c38d31d7c..a00c8008aa4 100644
--- a/lld/ELF/Symbols.h
+++ b/lld/ELF/Symbols.h
@@ -194,16 +194,11 @@ public:
this->File = File;
}
- DefinedRegular(StringRef Name, const Elf_Sym &Sym,
- InputSectionBase<ELFT> *Section)
- : DefinedRegular(Name, Sym.st_other, Sym.getType(), Sym.st_value,
- Sym.st_size, Section,
+ DefinedRegular(StringRef Name, uint8_t StOther, uint8_t Type, uintX_t Value,
+ uintX_t Size, InputSectionBase<ELFT> *Section)
+ : DefinedRegular(Name, StOther, Type, Value, Size, Section,
Section ? Section->getFile() : nullptr) {}
- DefinedRegular(StringRef Name, uint8_t StOther)
- : DefinedRegular(Name, StOther, llvm::ELF::STT_NOTYPE, 0, 0,
- NullInputSection, nullptr) {}
-
DefinedRegular(StringRef Name, uint8_t StOther, uint8_t Type, BitcodeFile *F)
: DefinedRegular(Name, StOther, Type, 0, 0, NullInputSection, F) {}
OpenPOWER on IntegriCloud