[lld] r318962 - Delete dead code.

Rafael Espindola via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 24 11:06:15 PST 2017


Author: rafael
Date: Fri Nov 24 11:06:14 2017
New Revision: 318962

URL: http://llvm.org/viewvc/llvm-project?rev=318962&view=rev
Log:
Delete dead code.

The parent constructor is already setting the binding.

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=318962&r1=318961&r2=318962&view=diff
==============================================================================
--- lld/trunk/ELF/Symbols.h (original)
+++ lld/trunk/ELF/Symbols.h Fri Nov 24 11:06:14 2017
@@ -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; }
 };




More information about the llvm-commits mailing list