void
dwarf_var_expanding_visitor::visit_perf_op (perf_op *e)
{
- token* t = new token;
string e_lit_val = e->operand->value;
- t->location = e->tok->location;
- t->type = tok_identifier;
- t->content = e_lit_val;
-
add_block = new block;
add_block->tok = e->tok;
perf_counter_refs.insert((*it).second.second);
// __perf_read_N is assigned in the probe prologue
symbol* sym = new symbol;
- sym->tok = t;
+ sym->tok = e->tok;
sym->name = "__perf_read_" + (*it).first;
provide (sym);
}