mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-28 06:32:09 +00:00
Make the DIEValue constructor even more explicit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202926 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7e8a5404fc
commit
e6d0bedb06
@ -193,7 +193,7 @@ class DIEValue {
|
|||||||
virtual void anchor();
|
virtual void anchor();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
enum {
|
enum Type {
|
||||||
isInteger,
|
isInteger,
|
||||||
isString,
|
isString,
|
||||||
isExpr,
|
isExpr,
|
||||||
@ -206,16 +206,16 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
/// Type - Type of data stored in the value.
|
/// Ty - Type of data stored in the value.
|
||||||
///
|
///
|
||||||
unsigned Type;
|
Type Ty;
|
||||||
|
|
||||||
public:
|
explicit DIEValue(Type T) : Ty(T) {}
|
||||||
explicit DIEValue(unsigned T) : Type(T) {}
|
|
||||||
virtual ~DIEValue() {}
|
virtual ~DIEValue() {}
|
||||||
|
|
||||||
|
public:
|
||||||
// Accessors
|
// Accessors
|
||||||
unsigned getType() const { return Type; }
|
Type getType() const { return Ty; }
|
||||||
|
|
||||||
/// EmitValue - Emit value via the Dwarf writer.
|
/// EmitValue - Emit value via the Dwarf writer.
|
||||||
///
|
///
|
||||||
|
Loading…
x
Reference in New Issue
Block a user