Make the DIEValue constructor even more explicit.
authorEric Christopher <echristo@gmail.com>
Wed, 5 Mar 2014 02:14:02 +0000 (02:14 +0000)
committerEric Christopher <echristo@gmail.com>
Wed, 5 Mar 2014 02:14:02 +0000 (02:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202926 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/DIE.h

index c89000956715317ab6e033a2ff4daa6d07770395..fa39806f1aa27b833564bedc814c9b422a3ba6ea 100644 (file)
@@ -193,7 +193,7 @@ class DIEValue {
   virtual void anchor();
 
 public:
-  enum {
+  enum Type {
     isInteger,
     isString,
     isExpr,
@@ -206,16 +206,16 @@ public:
   };
 
 protected:
-  /// Type - Type of data stored in the value.
+  /// Ty - Type of data stored in the value.
   ///
-  unsigned Type;
+  Type Ty;
 
-public:
-  explicit DIEValue(unsigned T) : Type(T) {}
+  explicit DIEValue(Type T) : Ty(T) {}
   virtual ~DIEValue() {}
 
+public:
   // Accessors
-  unsigned getType() const { return Type; }
+  Type getType() const { return Ty; }
 
   /// EmitValue - Emit value via the Dwarf writer.
   ///