diff options
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SDNodeDbgValue.h')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SDNodeDbgValue.h | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SDNodeDbgValue.h b/llvm/lib/CodeGen/SelectionDAG/SDNodeDbgValue.h index cd5b4c12f1d..a1b1c78fb8c 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SDNodeDbgValue.h +++ b/llvm/lib/CodeGen/SelectionDAG/SDNodeDbgValue.h @@ -20,8 +20,7 @@ namespace llvm { -class DIVariable; -class DIExpression; +class MDNode; class SDNode; class Value; @@ -44,8 +43,8 @@ private: const Value *Const; // valid for constants unsigned FrameIx; // valid for stack objects } u; - DIVariable *Var; - DIExpression *Expr; + MDNode *Var; + MDNode *Expr; DebugLoc DL; unsigned Order; enum DbgValueKind kind; @@ -54,8 +53,8 @@ private: public: // Constructor for non-constants. - SDDbgValue(DIVariable *Var, DIExpression *Expr, SDNode *N, unsigned R, - bool indir, DebugLoc dl, unsigned O) + SDDbgValue(MDNode *Var, MDNode *Expr, SDNode *N, unsigned R, bool indir, + DebugLoc dl, unsigned O) : Var(Var), Expr(Expr), DL(std::move(dl)), Order(O), IsIndirect(indir) { kind = SDNODE; u.s.Node = N; @@ -63,16 +62,14 @@ public: } // Constructor for constants. - SDDbgValue(DIVariable *Var, DIExpression *Expr, const Value *C, DebugLoc dl, - unsigned O) + SDDbgValue(MDNode *Var, MDNode *Expr, const Value *C, DebugLoc dl, unsigned O) : Var(Var), Expr(Expr), DL(std::move(dl)), Order(O), IsIndirect(false) { kind = CONST; u.Const = C; } // Constructor for frame indices. - SDDbgValue(DIVariable *Var, DIExpression *Expr, unsigned FI, DebugLoc dl, - unsigned O) + SDDbgValue(MDNode *Var, MDNode *Expr, unsigned FI, DebugLoc dl, unsigned O) : Var(Var), Expr(Expr), DL(std::move(dl)), Order(O), IsIndirect(false) { kind = FRAMEIX; u.FrameIx = FI; @@ -81,11 +78,11 @@ public: // Returns the kind. DbgValueKind getKind() const { return kind; } - // Returns the DIVariable pointer for the variable. - DIVariable *getVariable() const { return Var; } + // Returns the MDNode pointer for the variable. + MDNode *getVariable() const { return Var; } - // Returns the DIExpression pointer for the expression. - DIExpression *getExpression() const { return Expr; } + // Returns the MDNode pointer for the expression. + MDNode *getExpression() const { return Expr; } // Returns the SDNode* for a register ref SDNode *getSDNode() const { assert (kind==SDNODE); return u.s.Node; } |