diff options
author | Dale Johannesen <dalej@apple.com> | 2010-03-08 05:39:50 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2010-03-08 05:39:50 +0000 |
commit | 30488c636db76cc93ed8bdc3ed0e93ef8edb40ad (patch) | |
tree | 6fb664d9ec92f9339427a7aa5f59fdfc472f8fa6 | |
parent | 0eebdbb3256e1ed1dca77a104c10e3a8e20e7fe4 (diff) | |
download | bcm5719-llvm-30488c636db76cc93ed8bdc3ed0e93ef8edb40ad.tar.gz bcm5719-llvm-30488c636db76cc93ed8bdc3ed0e93ef8edb40ad.zip |
Add Order to SDDbgValue
llvm-svn: 97939
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SDDbgValue.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SDDbgValue.h b/llvm/lib/CodeGen/SelectionDAG/SDDbgValue.h index 9e15fc98bc4..d43a0447a6c 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SDDbgValue.h +++ b/llvm/lib/CodeGen/SelectionDAG/SDDbgValue.h @@ -34,14 +34,16 @@ class SDDbgValue { MDNode *mdPtr; uint64_t Offset; DebugLoc DL; + unsigned Order; public: // Constructor for non-constants. - SDDbgValue(MDNode *mdP, SDNode *N, unsigned R, uint64_t off, DebugLoc dl) : - Node(N), ResNo(R), Const(0), mdPtr(mdP), Offset(off), DL(dl) {} + SDDbgValue(MDNode *mdP, SDNode *N, unsigned R, uint64_t off, DebugLoc dl, + unsigned O) : + Node(N), ResNo(R), Const(0), mdPtr(mdP), Offset(off), DL(dl), Order(O) {} // Constructor for constants. - SDDbgValue(MDNode *mdP, Value *C, uint64_t off, DebugLoc dl) : Node(0), - ResNo(0), Const(C), mdPtr(mdP), Offset(off), DL(dl) {} + SDDbgValue(MDNode *mdP, Value *C, uint64_t off, DebugLoc dl, unsigned O) : + Node(0), ResNo(0), Const(C), mdPtr(mdP), Offset(off), DL(dl), Order(O) {} // Returns the MDNode pointer. MDNode *getMDPtr() { return mdPtr; } @@ -60,6 +62,10 @@ public: // Returns the DebugLoc. 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 |