mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
Revert "This reapplies r207130 with an additional testcase+and a missing check for"
Typo in testcase. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207166 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -45,17 +45,14 @@ private:
|
||||
unsigned FrameIx; // valid for stack objects
|
||||
} u;
|
||||
MDNode *mdPtr;
|
||||
bool IsIndirect;
|
||||
uint64_t Offset;
|
||||
DebugLoc DL;
|
||||
unsigned Order;
|
||||
bool Invalid;
|
||||
public:
|
||||
// Constructor for non-constants.
|
||||
SDDbgValue(MDNode *mdP, SDNode *N, unsigned R,
|
||||
bool indir, uint64_t off, DebugLoc dl,
|
||||
unsigned O) : mdPtr(mdP), IsIndirect(indir),
|
||||
Offset(off), DL(dl), Order(O),
|
||||
SDDbgValue(MDNode *mdP, SDNode *N, unsigned R, uint64_t off, DebugLoc dl,
|
||||
unsigned O) : mdPtr(mdP), Offset(off), DL(dl), Order(O),
|
||||
Invalid(false) {
|
||||
kind = SDNODE;
|
||||
u.s.Node = N;
|
||||
@@ -65,16 +62,14 @@ public:
|
||||
// Constructor for constants.
|
||||
SDDbgValue(MDNode *mdP, const Value *C, uint64_t off, DebugLoc dl,
|
||||
unsigned O) :
|
||||
mdPtr(mdP), IsIndirect(false), Offset(off), DL(dl), Order(O),
|
||||
Invalid(false) {
|
||||
mdPtr(mdP), Offset(off), DL(dl), Order(O), Invalid(false) {
|
||||
kind = CONST;
|
||||
u.Const = C;
|
||||
}
|
||||
|
||||
// Constructor for frame indices.
|
||||
SDDbgValue(MDNode *mdP, unsigned FI, uint64_t off, DebugLoc dl, unsigned O) :
|
||||
mdPtr(mdP), IsIndirect(false), Offset(off), DL(dl), Order(O),
|
||||
Invalid(false) {
|
||||
mdPtr(mdP), Offset(off), DL(dl), Order(O), Invalid(false) {
|
||||
kind = FRAMEIX;
|
||||
u.FrameIx = FI;
|
||||
}
|
||||
@@ -97,9 +92,6 @@ public:
|
||||
// Returns the FrameIx for a stack object
|
||||
unsigned getFrameIx() { assert (kind==FRAMEIX); return u.FrameIx; }
|
||||
|
||||
// Returns whether this is an indirect value.
|
||||
bool isIndirect() { return IsIndirect; }
|
||||
|
||||
// Returns the offset.
|
||||
uint64_t getOffset() { return Offset; }
|
||||
|
||||
|
Reference in New Issue
Block a user