[lld] r285240 - Remove a constructor to simplify.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 26 13:44:32 PDT 2016
Author: ruiu
Date: Wed Oct 26 15:44:32 2016
New Revision: 285240
URL: http://llvm.org/viewvc/llvm-project?rev=285240&view=rev
Log:
Remove a constructor to simplify.
Modified:
lld/trunk/ELF/Symbols.h
Modified: lld/trunk/ELF/Symbols.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Symbols.h?rev=285240&r1=285239&r2=285240&view=diff
==============================================================================
--- lld/trunk/ELF/Symbols.h (original)
+++ lld/trunk/ELF/Symbols.h Wed Oct 26 15:44:32 2016
@@ -194,19 +194,15 @@ public:
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,
InputSectionBase<ELFT> *Section)
: 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(Name, StOther, llvm::ELF::STT_NOTYPE, 0, 0,
- NullInputSection) {}
+ NullInputSection, nullptr) {}
DefinedRegular(StringRef Name, uint8_t StOther, uint8_t Type, BitcodeFile *F)
: DefinedRegular(Name, StOther, Type, 0, 0, NullInputSection, F) {}
More information about the llvm-commits
mailing list