diff --git a/ARMeilleure/Translation/EmitterContext.cs b/ARMeilleure/Translation/EmitterContext.cs index af1764ca82..6da6bcaac1 100644 --- a/ARMeilleure/Translation/EmitterContext.cs +++ b/ARMeilleure/Translation/EmitterContext.cs @@ -7,6 +7,8 @@ using static ARMeilleure.IntermediateRepresentation.OperandHelper; namespace ARMeilleure.Translation { + using AOT; + class EmitterContext { private Dictionary _irLabels; @@ -83,7 +85,7 @@ namespace ARMeilleure.Translation DelegateInfo dlgInfo = Delegates.GetMathDelegateInfo(name); - return Call(Const(dlgInfo.FuncPtr.ToInt64(), true, name), dlgInfo.RetType, callArgs); + return Call(Const(dlgInfo.FuncPtr.ToInt64(), Aot.Enabled, name), dlgInfo.RetType, callArgs); } public Operand NativeInterfaceCall(string funcName, params Operand[] callArgs) @@ -92,7 +94,7 @@ namespace ARMeilleure.Translation DelegateInfo dlgInfo = Delegates.GetNativeInterfaceDelegateInfo(funcName); - return Call(Const(dlgInfo.FuncPtr.ToInt64(), true, funcName), dlgInfo.RetType, callArgs); + return Call(Const(dlgInfo.FuncPtr.ToInt64(), Aot.Enabled, funcName), dlgInfo.RetType, callArgs); } public Operand SoftFallbackCall(string funcName, params Operand[] callArgs) @@ -101,7 +103,7 @@ namespace ARMeilleure.Translation DelegateInfo dlgInfo = Delegates.GetSoftFallbackDelegateInfo(funcName); - return Call(Const(dlgInfo.FuncPtr.ToInt64(), true, funcName), dlgInfo.RetType, callArgs); + return Call(Const(dlgInfo.FuncPtr.ToInt64(), Aot.Enabled, funcName), dlgInfo.RetType, callArgs); } public Operand SoftFloatCall(string className, string funcName, params Operand[] callArgs) @@ -110,7 +112,7 @@ namespace ARMeilleure.Translation DelegateInfo dlgInfo = Delegates.GetSoftFloatDelegateInfo(name); - return Call(Const(dlgInfo.FuncPtr.ToInt64(), true, name), dlgInfo.RetType, callArgs); + return Call(Const(dlgInfo.FuncPtr.ToInt64(), Aot.Enabled, name), dlgInfo.RetType, callArgs); } public Operand Call(Operand address, OperandType returnType, params Operand[] callArgs) @@ -547,4 +549,4 @@ namespace ARMeilleure.Translation return new ControlFlowGraph(_irBlocks.First.Value, _irBlocks); } } -} \ No newline at end of file +}