mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-09 13:33:17 +00:00
Add Order to SDDbgValue
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97939 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
84839daa59
commit
fab4a25d46
@ -34,14 +34,16 @@ class SDDbgValue {
|
|||||||
MDNode *mdPtr;
|
MDNode *mdPtr;
|
||||||
uint64_t Offset;
|
uint64_t Offset;
|
||||||
DebugLoc DL;
|
DebugLoc DL;
|
||||||
|
unsigned Order;
|
||||||
public:
|
public:
|
||||||
// Constructor for non-constants.
|
// Constructor for non-constants.
|
||||||
SDDbgValue(MDNode *mdP, SDNode *N, unsigned R, uint64_t off, DebugLoc dl) :
|
SDDbgValue(MDNode *mdP, SDNode *N, unsigned R, uint64_t off, DebugLoc dl,
|
||||||
Node(N), ResNo(R), Const(0), mdPtr(mdP), Offset(off), DL(dl) {}
|
unsigned O) :
|
||||||
|
Node(N), ResNo(R), Const(0), mdPtr(mdP), Offset(off), DL(dl), Order(O) {}
|
||||||
|
|
||||||
// Constructor for constants.
|
// Constructor for constants.
|
||||||
SDDbgValue(MDNode *mdP, Value *C, uint64_t off, DebugLoc dl) : Node(0),
|
SDDbgValue(MDNode *mdP, Value *C, uint64_t off, DebugLoc dl, unsigned O) :
|
||||||
ResNo(0), Const(C), mdPtr(mdP), Offset(off), DL(dl) {}
|
Node(0), ResNo(0), Const(C), mdPtr(mdP), Offset(off), DL(dl), Order(O) {}
|
||||||
|
|
||||||
// Returns the MDNode pointer.
|
// Returns the MDNode pointer.
|
||||||
MDNode *getMDPtr() { return mdPtr; }
|
MDNode *getMDPtr() { return mdPtr; }
|
||||||
@ -60,6 +62,10 @@ public:
|
|||||||
|
|
||||||
// Returns the DebugLoc.
|
// Returns the DebugLoc.
|
||||||
DebugLoc getDebugLoc() { return DL; }
|
DebugLoc getDebugLoc() { return DL; }
|
||||||
|
|
||||||
|
// Returns the SDNodeOrder. This is the order of the preceding node in the
|
||||||
|
// input.
|
||||||
|
unsigned getOrder() { return Order; }
|
||||||
};
|
};
|
||||||
|
|
||||||
} // end llvm namespace
|
} // end llvm namespace
|
||||||
|
Loading…
x
Reference in New Issue
Block a user