add new utility API to StackedValue

master
Daniel Kolesa 2015-12-16 19:05:28 +00:00
parent f279ac4d51
commit 02fb88b9fd
1 changed files with 5 additions and 0 deletions

View File

@ -492,6 +492,11 @@ struct StackedValue: TaggedValue {
pop();
}
bool alias(CsState &cs, ostd::ConstCharRange name) {
id = cs.new_ident(name);
return check_alias(id);
}
bool push() {
if (p_pushed || !id) return false;
id->push_arg(*this, p_stack);