Cosmos/source2/IL2PCU/Cosmos.IL2CPU/ILOp.cs
gero_cp 191cf1ee2d - Ported some classes
- Forward linked list of processing ILOps
2009-08-24 11:56:23 +00:00

26 lines
718 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Cosmos.IL2CPU
{
public abstract class ILOp
{
protected readonly Assembler Assembler;
protected ILOp( Assembler aAsmblr )
{
Assembler = aAsmblr;
}
// This is called execute and not assemble, as the scanner
// could be used for other things, profiling, analysis, reporting, etc
public abstract void Execute( MethodInfo aMethod, ILOpCode aOpCode );
public virtual void Execute( MethodInfo aMethod, ILOpCode aOpCode, ILOpCode aNextOpCode )
{
Execute( aMethod, aOpCode);
}
}
}