diff options
| author | LDj3SNuD <35856442+LDj3SNuD@users.noreply.github.com> | 2020-07-09 02:45:24 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-09 10:45:24 +1000 |
| commit | c050994995268494d46a6cac1d4ffa931effa0f6 (patch) | |
| tree | fe02cf3144ee2024bbc0119325ab237e8eba46f2 /ARMeilleure/IntermediateRepresentation | |
| parent | 484eb645ae0611f60fae845ed011ed6115352e06 (diff) | |
Fix PPTC on Windows 7. (#1369)
* Fix PPTC on Windows 7.
* Address gdkchan comment.
Diffstat (limited to 'ARMeilleure/IntermediateRepresentation')
| -rw-r--r-- | ARMeilleure/IntermediateRepresentation/Operand.cs | 19 | ||||
| -rw-r--r-- | ARMeilleure/IntermediateRepresentation/OperandHelper.cs | 4 |
2 files changed, 14 insertions, 9 deletions
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<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) 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) |
