StackedValue changes

master
Daniel Kolesa 2016-08-12 04:13:33 +01:00
parent 14c90e9da4
commit a6d2cc0ef4
1 changed files with 2 additions and 9 deletions

View File

@ -446,10 +446,8 @@ enum {
OSTD_EXPORT void init_libs(CsState &cs, int libs = CS_LIB_ALL);
struct OSTD_EXPORT StackedValue: TaggedValue {
StackedValue() = delete;
StackedValue(CsState &cs, Ident *id = nullptr):
TaggedValue(), p_cs(cs), p_id(id), p_stack(), p_pushed(false)
StackedValue(Ident *id = nullptr):
TaggedValue(), p_id(id), p_stack(), p_pushed(false)
{}
~StackedValue() {
@ -461,10 +459,6 @@ struct OSTD_EXPORT StackedValue: TaggedValue {
return p_id && p_id->is_alias();
}
bool set_id(ostd::ConstCharRange name) {
return set_id(p_cs.new_ident(name));
}
Ident *get_id() const {
return p_id;
}
@ -492,7 +486,6 @@ struct OSTD_EXPORT StackedValue: TaggedValue {
}
private:
CsState &p_cs;
Ident *p_id;
IdentStack p_stack;
bool p_pushed;