Files

15 lines
461 B
C#

namespace Cpp2IL.Core.ISIL;
// The address of a storage location, as produced by a lea of a stack slot.
// Normally this is a ref/out argument.
public class AddressOf(IOperand target) : IOperand
{
public IOperand Target = target;
public override bool Equals(object? obj) => obj is AddressOf other && Target.Equals(other.Target);
public override int GetHashCode() => Target.GetHashCode();
public override string ToString() => $"&{Target}";
}