From c050994995268494d46a6cac1d4ffa931effa0f6 Mon Sep 17 00:00:00 2001 From: LDj3SNuD <35856442+LDj3SNuD@users.noreply.github.com> Date: Thu, 9 Jul 2020 02:45:24 +0200 Subject: Fix PPTC on Windows 7. (#1369) * Fix PPTC on Windows 7. * Address gdkchan comment. --- ARMeilleure/IntermediateRepresentation/Operand.cs | 19 ++++++++++++------- .../IntermediateRepresentation/OperandHelper.cs | 4 ++-- 2 files changed, 14 insertions(+), 9 deletions(-) (limited to 'ARMeilleure/IntermediateRepresentation') diff --git a/ARMeilleure/IntermediateRepresentation/Operand.cs b/ARMeilleure/IntermediateRepresentation/Operand.cs index 6f6caea7..b8650d5a 100644 --- a/ARMeilleure/IntermediateRepresentation/Operand.cs +++ b/ARMeilleure/IntermediateRepresentation/Operand.cs @@ -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 Assignments { get; } public List 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) diff --git a/ARMeilleure/IntermediateRepresentation/OperandHelper.cs b/ARMeilleure/IntermediateRepresentation/OperandHelper.cs index 10040977..c97023fc 100644 --- a/ARMeilleure/IntermediateRepresentation/OperandHelper.cs +++ b/ARMeilleure/IntermediateRepresentation/OperandHelper.cs @@ -34,9 +34,9 @@ namespace ARMeilleure.IntermediateRepresentation return Operand().With(value); } - public static Operand Const(long value, bool disableCF = false, int? index = null) + public static Operand Const(long value, bool relocatable = false, int? index = null) { - return Operand().With(value, disableCF, index); + return Operand().With(value, relocatable, index); } public static Operand Const(ulong value) -- cgit v1.2.3