mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-29 02:20:51 +00:00
gdb: rename address_class -> location_class
The enum address_class and related fields and methods seem misnamed to me. Generalize it to "location_class". The enumerators in address_class are already prefixed with LOC, so the new name seems logical to me. Rename related fields and methods as well. Plus, address_class could easily be mistaken for other unrelated things named "address class" in GDB or DWARF. Tested by rebuilding. Change-Id: I0dca3738df412b350715286c608041b08e9b4d82 Approved-by: Kevin Buettner <kevinb@redhat.com>
This commit is contained in:
@@ -61,7 +61,7 @@ convert_one_symbol (compile_c_instance *context,
|
||||
|
||||
context->error_symbol_once (sym.symbol);
|
||||
|
||||
if (sym.symbol->aclass () == LOC_LABEL)
|
||||
if (sym.symbol->loc_class () == LOC_LABEL)
|
||||
sym_type = 0;
|
||||
else
|
||||
sym_type = context->convert_type (sym.symbol->type ());
|
||||
@@ -79,7 +79,7 @@ convert_one_symbol (compile_c_instance *context,
|
||||
CORE_ADDR addr = 0;
|
||||
gdb::unique_xmalloc_ptr<char> symbol_name;
|
||||
|
||||
switch (sym.symbol->aclass ())
|
||||
switch (sym.symbol->loc_class ())
|
||||
{
|
||||
case LOC_TYPEDEF:
|
||||
kind = GCC_C_SYMBOL_TYPEDEF;
|
||||
@@ -536,7 +536,7 @@ generate_c_for_for_one_variable (compile_instance *compiler,
|
||||
}
|
||||
else
|
||||
{
|
||||
switch (sym->aclass ())
|
||||
switch (sym->loc_class ())
|
||||
{
|
||||
case LOC_REGISTER:
|
||||
case LOC_ARG:
|
||||
|
||||
@@ -53,7 +53,7 @@ convert_one_symbol (compile_cplus_instance *instance,
|
||||
|
||||
instance->error_symbol_once (sym.symbol);
|
||||
|
||||
if (sym.symbol->aclass () == LOC_LABEL)
|
||||
if (sym.symbol->loc_class () == LOC_LABEL)
|
||||
sym_type = 0;
|
||||
else
|
||||
sym_type = instance->convert_type (sym.symbol->type ());
|
||||
@@ -70,7 +70,7 @@ convert_one_symbol (compile_cplus_instance *instance,
|
||||
std::string name;
|
||||
gdb::unique_xmalloc_ptr<char> symbol_name;
|
||||
|
||||
switch (sym.symbol->aclass ())
|
||||
switch (sym.symbol->loc_class ())
|
||||
{
|
||||
case LOC_TYPEDEF:
|
||||
if (sym.symbol->type ()->code () == TYPE_CODE_TYPEDEF)
|
||||
|
||||
Reference in New Issue
Block a user