From 6d2dbb484a63b7c1b8d1b1ea9b959c7d0eaf3dbf Mon Sep 17 00:00:00 2001 From: Arnaldo Carvalho de Melo Date: Fri, 16 Nov 2007 15:48:57 -0200 Subject: [PATCH] [DWARVES_EMIT]: Export cus__find_definition Needed in the next ctracer cset. Signed-off-by: Arnaldo Carvalho de Melo --- dwarves_emit.c | 3 +-- dwarves_emit.h | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dwarves_emit.c b/dwarves_emit.c index eb24f86..b3b832a 100644 --- a/dwarves_emit.c +++ b/dwarves_emit.c @@ -30,8 +30,7 @@ static void cus__add_fwd_decl(struct cus *self, struct type *type) list_add_tail(&type->node, self->fwd_decls); } -static struct type *cus__find_definition(const struct cus *self, - const char *name) +struct type *cus__find_definition(const struct cus *self, const char *name) { struct type *pos; diff --git a/dwarves_emit.h b/dwarves_emit.h index f156183..7c26caa 100644 --- a/dwarves_emit.h +++ b/dwarves_emit.h @@ -26,5 +26,7 @@ extern int cus__emit_fwd_decl(struct cus *self, struct type *ctype, const struct cu *cu, FILE *fp); extern void type__emit(struct tag *tag_self, struct cu *cu, const char *prefix, const char *suffix, FILE *fp); +extern struct type *cus__find_definition(const struct cus *self, + const char *name); #endif /* _DWARVES_EMIT_H_ */