{
if (locations.size() == 0 || locations.size() > 1)
throw semantic_error (_N("derived_probe with no locations",
- "derived_probe with no locations",
+ "derived_probe with too many locations",
locations.size()), this->tok);
else
return locations[0];
virtual const probe_alias *get_alias () const { return alias; }
virtual probe_point *get_alias_loc () const { return alias_loc; }
+ virtual probe_point *sole_location () const;
private:
const probe_alias *alias; // Used to check for recursion
}
+probe_point*
+alias_derived_probe::sole_location () const
+{
+ return const_cast<probe_point*>(alias_loc);
+}
+
+
probe*
probe::create_alias(probe_point* l, probe_point* a)
{