Purge (almost) make_cleanup_func.
This commit is contained in:
parent
32c092c3fa
commit
74b7792f0f
20 changed files with 187 additions and 35 deletions
|
@ -494,6 +494,17 @@ free_objfile (objfile)
|
|||
}
|
||||
}
|
||||
|
||||
static void
|
||||
do_free_objfile_cleanup (void *obj)
|
||||
{
|
||||
free_objfile (obj);
|
||||
}
|
||||
|
||||
struct cleanup *
|
||||
make_cleanup_free_objfile (struct objfile *obj)
|
||||
{
|
||||
return make_cleanup (do_free_objfile_cleanup, obj);
|
||||
}
|
||||
|
||||
/* Free all the object files at once and clean up their users. */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue