From: Rafael Espindola Date: Fri, 24 Nov 2017 19:06:14 +0000 (+0000) Subject: Delete dead code. X-Git-Tag: llvmorg-6.0.0-rc1~2715 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f8e405db466c1159673c4c094b4cc10c6ea7e366;p=platform%2Fupstream%2Fllvm.git Delete dead code. The parent constructor is already setting the binding. llvm-svn: 318962 --- diff --git a/lld/ELF/Symbols.h b/lld/ELF/Symbols.h index 4eab44e..b7b26e9 100644 --- a/lld/ELF/Symbols.h +++ b/lld/ELF/Symbols.h @@ -185,9 +185,7 @@ public: Defined(StringRefZ Name, uint8_t Binding, uint8_t StOther, uint8_t Type, uint64_t Value, uint64_t Size, SectionBase *Section) : Symbol(DefinedKind, Name, Binding, StOther, Type), Value(Value), - Size(Size), Section(Section) { - this->Binding = Binding; - } + Size(Size), Section(Section) {} static bool classof(const Symbol *S) { return S->isDefined(); } @@ -199,9 +197,7 @@ public: class Undefined : public Symbol { public: Undefined(StringRefZ Name, uint8_t Binding, uint8_t StOther, uint8_t Type) - : Symbol(UndefinedKind, Name, Binding, StOther, Type) { - this->Binding = Binding; - } + : Symbol(UndefinedKind, Name, Binding, StOther, Type) {} static bool classof(const Symbol *S) { return S->kind() == UndefinedKind; } };