[llvm] r202926 - Make the DIEValue constructor even more explicit.

Eric Christopher echristo at gmail.com
Tue Mar 4 18:14:02 PST 2014


Author: echristo
Date: Tue Mar  4 20:14:02 2014
New Revision: 202926

URL: http://llvm.org/viewvc/llvm-project?rev=202926&view=rev
Log:
Make the DIEValue constructor even more explicit.

Modified:
    llvm/trunk/lib/CodeGen/AsmPrinter/DIE.h

Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DIE.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DIE.h?rev=202926&r1=202925&r2=202926&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DIE.h (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DIE.h Tue Mar  4 20:14:02 2014
@@ -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.
   ///





More information about the llvm-commits mailing list