[lld] r248615 - Simplify enumeration definition.

Rafael Espindola via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 25 14:20:23 PDT 2015


Author: rafael
Date: Fri Sep 25 16:20:23 2015
New Revision: 248615

URL: http://llvm.org/viewvc/llvm-project?rev=248615&view=rev
Log:
Simplify enumeration definition.

Thanks to Rui for the suggestion.

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=248615&r1=248614&r2=248615&view=diff
==============================================================================
--- lld/trunk/ELF/Symbols.h (original)
+++ lld/trunk/ELF/Symbols.h Fri Sep 25 16:20:23 2015
@@ -37,15 +37,15 @@ struct Symbol {
 class SymbolBody {
 public:
   enum Kind {
-    DefinedFirst = 0,
-    DefinedRegularKind = 0,
-    DefinedAbsoluteKind = 1,
-    DefinedCommonKind = 2,
-    DefinedSyntheticKind = 3,
-    SharedKind = 4,
-    DefinedLast = 4,
-    UndefinedKind = 5,
-    LazyKind = 6,
+    DefinedFirst,
+    DefinedRegularKind = DefinedFirst,
+    DefinedAbsoluteKind,
+    DefinedCommonKind,
+    DefinedSyntheticKind,
+    SharedKind,
+    DefinedLast = SharedKind,
+    UndefinedKind,
+    LazyKind
   };
 
   Kind kind() const { return static_cast<Kind>(SymbolKind); }




More information about the llvm-commits mailing list