private Mem BaseVarMem(BaseVar var, int ptrSize)
        {
            Contract.Requires(var != null);

            int memSize = (ptrSize == Operand.InvalidValue ? var.Size : (byte)ptrSize);
            Mem m = new Mem(var.Id, memSize);
            return m;
        }
Exemple #2
0
        internal static Mem BaseVarMem(BaseVar var, int ptrSize)
        {
            Contract.Requires(var != null);

            int memSize = (ptrSize == InvalidValue) ? var.Size : (byte)ptrSize;
            Mem m = new Mem(var.Id, memSize);
            return m;
        }