Delete dead code.
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 24 Nov 2017 19:06:14 +0000 (19:06 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 24 Nov 2017 19:06:14 +0000 (19:06 +0000)
The parent constructor is already setting the binding.

llvm-svn: 318962

lld/ELF/Symbols.h

index 4eab44e..b7b26e9 100644 (file)
@@ -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; }
 };