Remove a constructor to simplify.

llvm-svn: 285240
This commit is contained in:
Rui Ueyama 2016-10-26 20:44:32 +00:00
parent 9bd85d2286
commit 4c1cd45965
1 changed files with 3 additions and 7 deletions

View File

@ -194,19 +194,15 @@ public:
this->File = File; this->File = File;
} }
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, const Elf_Sym &Sym, DefinedRegular(StringRef Name, const Elf_Sym &Sym,
InputSectionBase<ELFT> *Section) InputSectionBase<ELFT> *Section)
: DefinedRegular(Name, Sym.st_other, Sym.getType(), Sym.st_value, : DefinedRegular(Name, Sym.st_other, Sym.getType(), Sym.st_value,
Sym.st_size, Section) {} Sym.st_size, Section,
Section ? Section->getFile() : nullptr) {}
DefinedRegular(StringRef Name, uint8_t StOther) DefinedRegular(StringRef Name, uint8_t StOther)
: DefinedRegular(Name, StOther, llvm::ELF::STT_NOTYPE, 0, 0, : DefinedRegular(Name, StOther, llvm::ELF::STT_NOTYPE, 0, 0,
NullInputSection) {} NullInputSection, nullptr) {}
DefinedRegular(StringRef Name, uint8_t StOther, uint8_t Type, BitcodeFile *F) DefinedRegular(StringRef Name, uint8_t StOther, uint8_t Type, BitcodeFile *F)
: DefinedRegular(Name, StOther, Type, 0, 0, NullInputSection, F) {} : DefinedRegular(Name, StOther, Type, 0, 0, NullInputSection, F) {}