Fix PPTC on Windows 7. (#1369)

* Fix PPTC on Windows 7.

* Address gdkchan comment.
This commit is contained in:
LDj3SNuD 2020-07-09 02:45:24 +02:00 committed by GitHub
parent 484eb645ae
commit c050994995
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 19 additions and 14 deletions

View file

@ -10,8 +10,8 @@ namespace ARMeilleure.IntermediateRepresentation
public ulong Value { get; private set; }
public bool DisableCF { get; private set; }
public int? PtcIndex { get; private set; }
public bool Relocatable { get; private set; }
public int? PtcIndex { get; private set; }
public List<Node> Assignments { get; }
public List<Node> Uses { get; }
@ -28,15 +28,20 @@ namespace ARMeilleure.IntermediateRepresentation
Type = type;
}
public Operand With(OperandKind kind, OperandType type = OperandType.None, ulong value = 0, bool disableCF = false, int? index = null)
public Operand With(
OperandKind kind,
OperandType type = OperandType.None,
ulong value = 0,
bool relocatable = false,
int? index = null)
{
Kind = kind;
Type = type;
Value = value;
DisableCF = disableCF;
PtcIndex = index;
Relocatable = relocatable;
PtcIndex = index;
Assignments.Clear();
Uses.Clear();
@ -54,9 +59,9 @@ namespace ARMeilleure.IntermediateRepresentation
return With(OperandKind.Constant, OperandType.I32, value);
}
public Operand With(long value, bool disableCF = false, int? index = null)
public Operand With(long value, bool relocatable = false, int? index = null)
{
return With(OperandKind.Constant, OperandType.I64, (ulong)value, disableCF, index);
return With(OperandKind.Constant, OperandType.I64, (ulong)value, relocatable, index);
}
public Operand With(ulong value)