Exemplo n.º 1
0
        /// <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;
        }
Exemplo n.º 2
0
 /// <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;
 }