diff options
author | Eric Christopher <echristo@gmail.com> | 2014-03-05 02:14:02 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2014-03-05 02:14:02 +0000 |
commit | e6d0bedb065a9d5c063ca9125dbe70c5c223b134 (patch) | |
tree | 532875150652a661612f47ad240008d00cd1642f /lib | |
parent | 7e8a5404fc59222ba794b6614ef914ab8d98abab (diff) | |
download | llvm-e6d0bedb065a9d5c063ca9125dbe70c5c223b134.tar.gz llvm-e6d0bedb065a9d5c063ca9125dbe70c5c223b134.tar.bz2 llvm-e6d0bedb065a9d5c063ca9125dbe70c5c223b134.tar.xz |
Make the DIEValue constructor even more explicit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202926 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DIE.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/CodeGen/AsmPrinter/DIE.h b/lib/CodeGen/AsmPrinter/DIE.h index c890009567..fa39806f1a 100644 --- a/lib/CodeGen/AsmPrinter/DIE.h +++ b/lib/CodeGen/AsmPrinter/DIE.h @@ -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. /// |