GDB (xrefs)
Classes | Functions
compile-c-types.c File Reference
#include "defs.h"
#include "gdbtypes.h"
#include "compile-internal.h"
#include "objfiles.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

◆ convert_array()

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

◆ convert_bool()

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

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

References C_CTX.

Referenced by convert_type_basic().

◆ convert_complex()

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

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

References C_CTX, convert_type(), and TYPE_TARGET_TYPE.

Referenced by convert_type_basic().

◆ convert_enum()

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

◆ convert_float()

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

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

References C_CTX, and TYPE_LENGTH.

Referenced by convert_type_basic().

◆ convert_func()

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

◆ convert_int()

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

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

References C_CTX, TYPE_LENGTH, and TYPE_UNSIGNED.

Referenced by convert_type_basic().

◆ convert_pointer()

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

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

References C_CTX, convert_type(), and TYPE_TARGET_TYPE.

Referenced by convert_type_basic().

◆ convert_qualified()

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

◆ convert_struct_or_union()

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

◆ convert_type()

gcc_type convert_type ( struct compile_c_instance context,
struct type type 
)

◆ convert_type_basic()

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

◆ convert_void()

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

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

References C_CTX.

Referenced by convert_type_basic().

◆ delete_instance()

static void delete_instance ( struct compile_instance c)
static

◆ eq_type_map_instance()

static int eq_type_map_instance ( const void *  a,
const void *  b 
)
static

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

References type_map_instance::type.

Referenced by new_compile_instance().

◆ hash_type_map_instance()

static hashval_t hash_type_map_instance ( const void *  p)
static

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

References type_map_instance::type.

Referenced by new_compile_instance().

◆ insert_type()

static void insert_type ( struct compile_c_instance context,
struct type type,
gcc_type  gcc_type 
)
static

◆ new_compile_instance()

struct compile_instance* new_compile_instance ( struct gcc_c_context *  fe)