Make get_type_alignment_compound() static.
authorChristoph Mallon <christoph.mallon@gmx.de>
Sat, 10 Sep 2011 09:42:06 +0000 (11:42 +0200)
committerChristoph Mallon <christoph.mallon@gmx.de>
Sat, 10 Sep 2011 09:42:06 +0000 (11:42 +0200)
type.c
type.h

diff --git a/type.c b/type.c
index efa9583..b7a5b6d 100644 (file)
--- a/type.c
+++ b/type.c
@@ -1264,7 +1264,12 @@ unsigned get_type_alignment(type_t *type)
        panic("invalid type in get_type_alignment");
 }
 
-unsigned get_type_alignment_compound(type_t *type)
+/**
+ * get alignment of a type when used inside a compound.
+ * Some ABIs are broken and alignment inside a compound is different from
+ * recommended alignment of a type
+ */
+static unsigned get_type_alignment_compound(type_t *const type)
 {
        assert(!is_typeref(type));
        if (type->kind == TYPE_ATOMIC)
diff --git a/type.h b/type.h
index 23b264f..7e07536 100644 (file)
--- a/type.h
+++ b/type.h
@@ -193,13 +193,6 @@ unsigned         get_type_alignment(type_t *type);
 unsigned         get_type_size(type_t *type);
 decl_modifiers_t get_type_modifiers(const type_t *type);
 
-/**
- * get alignment of a type when used inside a compound.
- * Some ABIs are broken and alignment inside a compound is different from
- * recommended alignment of a type
- */
-unsigned         get_type_alignment_compound(type_t *type);
-
 /**
  * returns flags of an atomic type kind
  */