diff --git a/ARMeilleure/Diagnostics/Logger.cs b/ARMeilleure/Diagnostics/Logger.cs index e8cd47ad8c..29d9c79b93 100644 --- a/ARMeilleure/Diagnostics/Logger.cs +++ b/ARMeilleure/Diagnostics/Logger.cs @@ -17,7 +17,7 @@ namespace ARMeilleure.Diagnostics public static void StartPass(PassName name) { -#if DEBUG +#if M_DEBUG WriteOutput(name + " pass started..."); _startTime = Stopwatch.GetTimestamp(); @@ -26,7 +26,7 @@ namespace ARMeilleure.Diagnostics public static void EndPass(PassName name, ControlFlowGraph cfg) { -#if DEBUG +#if M_DEBUG EndPass(name); WriteOutput("IR after " + name + " pass:"); @@ -37,7 +37,7 @@ namespace ARMeilleure.Diagnostics public static void EndPass(PassName name) { -#if DEBUG +#if M_DEBUG long elapsedTime = Stopwatch.GetTimestamp() - _startTime; _accumulatedTime[(int)name] += elapsedTime; diff --git a/ARMeilleure/Instructions/NativeInterface.cs b/ARMeilleure/Instructions/NativeInterface.cs index 3e64d64f58..938fec45bf 100644 --- a/ARMeilleure/Instructions/NativeInterface.cs +++ b/ARMeilleure/Instructions/NativeInterface.cs @@ -46,8 +46,6 @@ namespace ARMeilleure.Instructions public static void SupervisorCall(ulong address, int imm) { - System.Span test = stackalloc byte[0x2000]; - GetContext().OnSupervisorCall(address, imm); } diff --git a/ARMeilleure/Translation/EmitterContext.cs b/ARMeilleure/Translation/EmitterContext.cs index f9acaa2923..9b2d15aa98 100644 --- a/ARMeilleure/Translation/EmitterContext.cs +++ b/ARMeilleure/Translation/EmitterContext.cs @@ -10,8 +10,6 @@ namespace ARMeilleure.Translation { class EmitterContext { - - private Dictionary _labels; private Dictionary _irLabels; @@ -89,7 +87,7 @@ namespace ARMeilleure.Translation //Add the delegate to the cache to ensure it will not be garbage collected. func = DelegateCache.GetOrAdd(func); - IntPtr ptr = Marshal.GetFunctionPointerForDelegate(func); + IntPtr ptr = Marshal.GetFunctionPointerForDelegate(func); OperandType returnType = GetOperandType(func.Method.ReturnType);