core: Export tag__natural_alignment()
We'll use it in the BTF loader. Signed-off-by: Douglas Raillard <douglas.raillard@arm.com> [ Split from a larger patch ] Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
43e8216c25
commit
4db65fe0cd
|
@ -1515,7 +1515,7 @@ void class__find_holes(struct class *class)
|
||||||
|
|
||||||
static size_t type__natural_alignment(struct type *type, const struct cu *cu);
|
static size_t type__natural_alignment(struct type *type, const struct cu *cu);
|
||||||
|
|
||||||
static size_t tag__natural_alignment(struct tag *tag, const struct cu *cu)
|
size_t tag__natural_alignment(struct tag *tag, const struct cu *cu)
|
||||||
{
|
{
|
||||||
size_t natural_alignment = 1;
|
size_t natural_alignment = 1;
|
||||||
|
|
||||||
|
|
|
@ -1007,6 +1007,8 @@ struct type {
|
||||||
|
|
||||||
void __type__init(struct type *type);
|
void __type__init(struct type *type);
|
||||||
|
|
||||||
|
size_t tag__natural_alignment(struct tag *tag, const struct cu *cu);
|
||||||
|
|
||||||
static inline struct class *type__class(const struct type *type)
|
static inline struct class *type__class(const struct type *type)
|
||||||
{
|
{
|
||||||
return (struct class *)type;
|
return (struct class *)type;
|
||||||
|
|
Loading…
Reference in New Issue