GDB (xrefs)
|
#include "compile.h"
Public Member Functions | |
compile_instance (struct gcc_base_context *gcc_fe, const char *options) | |
virtual | ~compile_instance () |
const std::string & | gcc_target_options () const |
bool | get_cached_type (struct type *type, gcc_type *ret) const |
void | insert_type (struct type *type, gcc_type gcc_type) |
void | insert_symbol_error (const struct symbol *sym, const char *text) |
void | error_symbol_once (const struct symbol *sym) |
void | set_print_callback (void(*print_function)(void *, const char *), void *datum) |
unsigned int | version () const |
void | set_verbose (int level) |
void | set_driver_filename (const char *filename) |
void | set_triplet_regexp (const char *regexp) |
gdb::unique_xmalloc_ptr< char > | set_arguments (int argc, char **argv, const char *regexp=NULL) |
void | set_source_file (const char *filename) |
bool | compile (const char *filename, int verbose_level=-1) |
void | set_scope (enum compile_i_scope_types scope) |
enum compile_i_scope_types | scope () const |
void | set_block (const struct block *block) |
const struct block * | block () const |
Protected Attributes | |
struct gcc_base_context * | m_gcc_fe |
enum compile_i_scope_types | m_scope |
const struct block * | m_block |
std::string | m_gcc_target_options |
htab_up | m_type_map |
htab_up | m_symbol_err_map |
compile_instance::compile_instance | ( | struct gcc_base_context * | gcc_fe, |
const char * | options ) |
|
inlinevirtual |
|
inline |
Definition at line 117 of file compile.h.
References m_block.
Referenced by compile_cplus_convert_struct_or_union_members(), compile_cplus_convert_struct_or_union_methods(), gcc_convert_symbol(), gcc_cplus_convert_symbol(), and set_block().
bool compile_instance::compile | ( | const char * | filename, |
int | verbose_level = -1 ) |
void compile_instance::error_symbol_once | ( | const struct symbol * | sym | ) |
Definition at line 225 of file compile.c.
References err, m_symbol_err_map, and symbol_error::sym.
Referenced by convert_one_symbol(), and convert_one_symbol().
|
inline |
bool compile_instance::get_cached_type | ( | struct type * | type, |
gcc_type * | ret ) const |
Definition at line 160 of file compile.c.
References type_map_instance::gcc_type_handle, m_type_map, type_map_instance::type, and type.
Referenced by compile_c_instance::convert_type(), compile_cplus_instance::convert_type(), and compile_cplus_instance::new_scope().
void compile_instance::insert_symbol_error | ( | const struct symbol * | sym, |
const char * | text ) |
Definition at line 204 of file compile.c.
References m_symbol_err_map, symbol_error::message, and symbol_error::sym.
Referenced by generate_c_for_for_one_variable().
void compile_instance::insert_type | ( | struct type * | type, |
gcc_type | gcc_type ) |
Definition at line 178 of file compile.c.
References type_map_instance::gcc_type_handle, m_type_map, type_map_instance::type, and type.
Referenced by compile_cplus_convert_struct_or_union(), convert_struct_or_union(), compile_c_instance::convert_type(), and compile_cplus_instance::convert_type().
|
inline |
Definition at line 105 of file compile.h.
References m_scope.
Referenced by convert_one_symbol(), convert_one_symbol(), compile_cplus_instance::new_scope(), and set_scope().
gdb::unique_xmalloc_ptr< char > compile_instance::set_arguments | ( | int | argc, |
char ** | argv, | ||
const char * | regexp = NULL ) |
Definition at line 924 of file compile.c.
References FORWARD, set_arguments(), and version().
Referenced by set_arguments().
|
inline |
void compile_instance::set_driver_filename | ( | const char * | filename | ) |
Definition at line 906 of file compile.c.
References FORWARD, set_driver_filename(), and version().
Referenced by set_driver_filename().
void compile_instance::set_print_callback | ( | void(*)(void *, const char *) | print_function, |
void * | datum ) |
Definition at line 880 of file compile.c.
References FORWARD, and set_print_callback().
Referenced by set_print_callback().
|
inline |
void compile_instance::set_source_file | ( | const char * | filename | ) |
Definition at line 936 of file compile.c.
References FORWARD, and set_source_file().
Referenced by set_source_file().
void compile_instance::set_triplet_regexp | ( | const char * | regexp | ) |
Definition at line 915 of file compile.c.
References FORWARD, set_triplet_regexp(), and version().
Referenced by set_triplet_regexp().
void compile_instance::set_verbose | ( | int | level | ) |
Definition at line 897 of file compile.c.
References FORWARD, set_verbose(), and version().
Referenced by set_verbose().
unsigned int compile_instance::version | ( | ) | const |
Definition at line 889 of file compile.c.
References m_gcc_fe.
Referenced by compile(), set_arguments(), set_driver_filename(), set_triplet_regexp(), and set_verbose().
|
protected |
Definition at line 131 of file compile.h.
Referenced by block(), and set_block().
|
protected |
Definition at line 125 of file compile.h.
Referenced by version(), and ~compile_instance().
|
protected |
Definition at line 135 of file compile.h.
Referenced by gcc_target_options().
|
protected |
Definition at line 128 of file compile.h.
Referenced by scope(), and set_scope().
|
protected |
Definition at line 141 of file compile.h.
Referenced by error_symbol_once(), and insert_symbol_error().
|
protected |
Definition at line 138 of file compile.h.
Referenced by get_cached_type(), and insert_type().