dwarves: Introduce function__addr method

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
Arnaldo Carvalho de Melo 2009-06-08 14:20:44 -03:00
parent 2791a55e95
commit e39c0b0998
1 changed files with 5 additions and 0 deletions

View File

@ -688,6 +688,11 @@ size_t function__fprintf_stats(const struct tag *tag_self,
const char *function__prototype(const struct function *self,
const struct cu *cu, char *bf, size_t len);
static __pure inline function__addr(const struct function *self)
{
return self->lexblock.ip.addr;
}
static __pure inline uint32_t function__size(const struct function *self)
{
return self->lexblock.size;