From f8e405db466c1159673c4c094b4cc10c6ea7e366 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Fri, 24 Nov 2017 19:06:14 +0000 Subject: [PATCH] Delete dead code. The parent constructor is already setting the binding. llvm-svn: 318962 --- lld/ELF/Symbols.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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; } }; -- 2.7.4