GDB (xrefs)
Classes | Functions
compile-c-types.c File Reference
#include "defs.h"
#include "gdbtypes.h"
#include "compile-internal.h"

Go to the source code of this file.

Classes

struct  type_map_instance
 

Functions

static hashval_t hash_type_map_instance (const void *p)
 
static int eq_type_map_instance (const void *a, const void *b)
 
static void insert_type (struct compile_c_instance *context, struct type *type, gcc_type gcc_type)
 
static gcc_type convert_pointer (struct compile_c_instance *context, struct type *type)
 
static gcc_type convert_array (struct compile_c_instance *context, struct type *type)
 
static gcc_type convert_struct_or_union (struct compile_c_instance *context, struct type *type)
 
static gcc_type convert_enum (struct compile_c_instance *context, struct type *type)
 
static gcc_type convert_func (struct compile_c_instance *context, struct type *type)
 
static gcc_type convert_int (struct compile_c_instance *context, struct type *type)
 
static gcc_type convert_float (struct compile_c_instance *context, struct type *type)
 
static gcc_type convert_void (struct compile_c_instance *context, struct type *type)
 
static gcc_type convert_bool (struct compile_c_instance *context, struct type *type)
 
static gcc_type convert_qualified (struct compile_c_instance *context, struct type *type)
 
static gcc_type convert_complex (struct compile_c_instance *context, struct type *type)
 
static gcc_type convert_type_basic (struct compile_c_instance *context, struct type *type)
 
gcc_type convert_type (struct compile_c_instance *context, struct type *type)
 
static void delete_instance (struct compile_instance *c)
 
struct compile_instancenew_compile_instance (struct gcc_c_context *fe)
 

Function Documentation

static gcc_type convert_array ( struct compile_c_instance context,
struct type type 
)
static
static gcc_type convert_bool ( struct compile_c_instance context,
struct type type 
)
static

Definition at line 284 of file compile-c-types.c.

References C_CTX.

Referenced by convert_type_basic().

static gcc_type convert_complex ( struct compile_c_instance context,
struct type type 
)
static

Definition at line 315 of file compile-c-types.c.

References C_CTX, convert_type(), and TYPE_TARGET_TYPE.

Referenced by convert_type_basic().

static gcc_type convert_enum ( struct compile_c_instance context,
struct type type 
)
static
static gcc_type convert_float ( struct compile_c_instance context,
struct type type 
)
static

Definition at line 267 of file compile-c-types.c.

References C_CTX, and TYPE_LENGTH.

Referenced by convert_type_basic().

static gcc_type convert_func ( struct compile_c_instance context,
struct type type 
)
static
static gcc_type convert_int ( struct compile_c_instance context,
struct type type 
)
static

Definition at line 257 of file compile-c-types.c.

References C_CTX, TYPE_LENGTH, and TYPE_UNSIGNED.

Referenced by convert_type_basic().

static gcc_type convert_pointer ( struct compile_c_instance context,
struct type type 
)
static

Definition at line 95 of file compile-c-types.c.

References C_CTX, convert_type(), type_map_instance::gcc_type, and TYPE_TARGET_TYPE.

Referenced by convert_type_basic().

static gcc_type convert_qualified ( struct compile_c_instance context,
struct type type 
)
static
static gcc_type convert_struct_or_union ( struct compile_c_instance context,
struct type type 
)
static
gcc_type convert_type ( struct compile_c_instance context,
struct type type 
)
static gcc_type convert_type_basic ( struct compile_c_instance context,
struct type type 
)
static
static gcc_type convert_void ( struct compile_c_instance context,
struct type type 
)
static

Definition at line 276 of file compile-c-types.c.

References C_CTX.

Referenced by convert_type_basic().

static void delete_instance ( struct compile_instance c)
static
static int eq_type_map_instance ( const void *  a,
const void *  b 
)
static

Definition at line 50 of file compile-c-types.c.

References type_map_instance::type.

Referenced by new_compile_instance().

static hashval_t hash_type_map_instance ( const void *  p)
static

Definition at line 40 of file compile-c-types.c.

References type_map_instance::type.

Referenced by new_compile_instance().

static void insert_type ( struct compile_c_instance context,
struct type type,
gcc_type  gcc_type 
)
static
struct compile_instance* new_compile_instance ( struct gcc_c_context *  fe)