aboutsummaryrefslogtreecommitdiff
path: root/ARMeilleure/IntermediateRepresentation/OperandHelper.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ARMeilleure/IntermediateRepresentation/OperandHelper.cs')
-rw-r--r--ARMeilleure/IntermediateRepresentation/OperandHelper.cs14
1 files changed, 10 insertions, 4 deletions
diff --git a/ARMeilleure/IntermediateRepresentation/OperandHelper.cs b/ARMeilleure/IntermediateRepresentation/OperandHelper.cs
index 1b748f6a..420555a7 100644
--- a/ARMeilleure/IntermediateRepresentation/OperandHelper.cs
+++ b/ARMeilleure/IntermediateRepresentation/OperandHelper.cs
@@ -1,4 +1,5 @@
using ARMeilleure.Common;
+using ARMeilleure.Translation.PTC;
using System.Runtime.CompilerServices;
namespace ARMeilleure.IntermediateRepresentation
@@ -25,9 +26,14 @@ namespace ARMeilleure.IntermediateRepresentation
return Operand().With(value);
}
- public static Operand Const(long value, bool relocatable = false, int? index = null)
+ public static Operand Const(long value)
{
- return Operand().With(value, relocatable, index);
+ return Operand().With(value);
+ }
+
+ public static Operand Const(long value, Symbol symbol)
+ {
+ return Operand().With(value, symbol);
}
public static Operand Const(ulong value)
@@ -35,9 +41,9 @@ namespace ARMeilleure.IntermediateRepresentation
return Operand().With(value);
}
- public static unsafe Operand Const<T>(ref T reference, int? index = null)
+ public static unsafe Operand Const<T>(ref T reference, Symbol symbol = default)
{
- return Operand().With((long)Unsafe.AsPointer(ref reference), index != null, index);
+ return Operand().With((long)Unsafe.AsPointer(ref reference), symbol);
}
public static Operand ConstF(float value)