From 2791a55e950dc761a520b0dac2d1938279bf40c7 Mon Sep 17 00:00:00 2001 From: Arnaldo Carvalho de Melo Date: Mon, 8 Jun 2009 14:19:23 -0300 Subject: [PATCH] dwarves: Add label__name method Signed-off-by: Arnaldo Carvalho de Melo --- dwarves.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dwarves.h b/dwarves.h index 8130590..e16236f 100644 --- a/dwarves.h +++ b/dwarves.h @@ -511,6 +511,12 @@ static inline struct label *tag__label(const struct tag *self) return (struct label *)self; } +static inline const char *label__name(const struct label *self, + const struct cu *cu) +{ + return cu__string(cu, self->name); +} + enum vlocation { LOCATION_UNKNOWN, LOCATION_LOCAL,