/// <summary> /// Constructs a new generation phase. /// </summary> /// <param name="frontend">The current frontend instance.</param> /// <param name="context">The target IR context.</param> internal CodeGenerationPhase(ILFrontend frontend, IRContext context) { Debug.Assert(frontend != null, "Invalid frontend"); Debug.Assert(context != null, "Invalid context"); Context = context; Frontend = frontend; DebugInformationManager = frontend.DebugInformationManager; }
/// <summary> /// Constructs a new generation phase. /// </summary> /// <param name="frontend">The current frontend instance.</param> /// <param name="context">The target IR context.</param> /// <param name="verifier">The associated verifier.</param> internal CodeGenerationPhase( ILFrontend frontend, IRContext context, Verifier verifier) { Context = context; Frontend = frontend; DebugInformationManager = frontend.DebugInformationManager; Verifier = verifier; }