aboutsummaryrefslogtreecommitdiff
path: root/ARMeilleure/CodeGen/Unwinding/UnwindPushEntry.cs
blob: 021479a4f25181d69c3c52fe046a5a3dae2ea1b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
namespace ARMeilleure.CodeGen.Unwinding
{
    struct UnwindPushEntry
    {
        public UnwindPseudoOp PseudoOp { get; }
        public int PrologOffset { get; }
        public int RegIndex { get; }
        public int StackOffsetOrAllocSize { get; }

        public UnwindPushEntry(UnwindPseudoOp pseudoOp, int prologOffset, int regIndex = -1, int stackOffsetOrAllocSize = -1)
        {
            PseudoOp = pseudoOp;
            PrologOffset = prologOffset;
            RegIndex = regIndex;
            StackOffsetOrAllocSize = stackOffsetOrAllocSize;
        }
    }
}