core: namespace__delete() doesn't need a 'cu' arg
Since we stopped using per-cu obstacks we don't need it. If we ever want to use it we can do per thread obstacks. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
de4e8b7f17
commit
7569e46d35
|
@ -1167,7 +1167,7 @@ static struct tag *die__create_new_namespace(Dwarf_Die *die, struct cu *cu, stru
|
|||
dwarf_haschildren(die) != 0 &&
|
||||
dwarf_child(die, &child) == 0) {
|
||||
if (die__process_namespace(&child, namespace, cu, conf) != 0) {
|
||||
namespace__delete(namespace, cu);
|
||||
namespace__delete(namespace);
|
||||
namespace = NULL;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -283,7 +283,7 @@ const char *base_type__name(const struct base_type *bt, const struct cu *cu,
|
|||
return bf;
|
||||
}
|
||||
|
||||
void namespace__delete(struct namespace *space, struct cu *cu)
|
||||
void namespace__delete(struct namespace *space)
|
||||
{
|
||||
struct tag *pos, *n;
|
||||
|
||||
|
@ -295,7 +295,7 @@ void namespace__delete(struct namespace *space, struct cu *cu)
|
|||
|
||||
/* Look for nested namespaces */
|
||||
if (tag__has_namespace(pos))
|
||||
namespace__delete(tag__namespace(pos), cu);
|
||||
namespace__delete(tag__namespace(pos));
|
||||
tag__delete(pos);
|
||||
}
|
||||
|
||||
|
|
|
@ -591,7 +591,7 @@ static inline struct namespace *tag__namespace(const struct tag *tag)
|
|||
return (struct namespace *)tag;
|
||||
}
|
||||
|
||||
void namespace__delete(struct namespace *nspace, struct cu *cu);
|
||||
void namespace__delete(struct namespace *nspace);
|
||||
|
||||
/**
|
||||
* namespace__for_each_tag - iterate thru all the tags
|
||||
|
|
Loading…
Reference in New Issue