public MonoVariable(string name, TargetType type, bool is_local, bool is_byref,
Method method, VariableInfo info)
{
this.name = name;
this.type = type;
this.info = info;
this.is_byref = is_byref;
start_scope = method.StartAddress;
end_scope = method.EndAddress;
if (info.HasLivenessInfo) {
start_liveness = method.StartAddress + info.BeginLiveness;
end_liveness = method.StartAddress + info.EndLiveness;
has_liveness_info = true;
} else {
start_liveness = method.MethodStartAddress;
end_liveness = method.MethodEndAddress;
has_liveness_info = false;
}
}