2003-06-02 David Carlton <carlton@math.stanford.edu>
* objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'. * c-valprint.c (c_val_print): Delete unneeded variable 's'. * p-valprint.c (pascal_val_print): Ditto. * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
This commit is contained in:
parent
d80dbb52aa
commit
cdef89d011
5 changed files with 11 additions and 8 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2003-06-02 David Carlton <carlton@math.stanford.edu>
|
||||||
|
|
||||||
|
* objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
|
||||||
|
* c-valprint.c (c_val_print): Delete unneeded variable 's'.
|
||||||
|
* p-valprint.c (pascal_val_print): Ditto.
|
||||||
|
* ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
|
||||||
|
|
||||||
2003-06-02 Richard Henderson <rth@redhat.com>
|
2003-06-02 Richard Henderson <rth@redhat.com>
|
||||||
|
|
||||||
* alpha-tdep.c (alpha_push_dummy_call): Use
|
* alpha-tdep.c (alpha_push_dummy_call): Use
|
||||||
|
|
|
@ -3181,8 +3181,7 @@ static struct symbol *
|
||||||
standard_lookup (const char *name, domain_enum domain)
|
standard_lookup (const char *name, domain_enum domain)
|
||||||
{
|
{
|
||||||
struct symbol *sym;
|
struct symbol *sym;
|
||||||
struct symtab *symtab;
|
sym = lookup_symbol (name, (struct block *) NULL, domain, 0, NULL);
|
||||||
sym = lookup_symbol (name, (struct block *) NULL, domain, 0, &symtab);
|
|
||||||
return sym;
|
return sym;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -213,13 +213,12 @@ c_val_print (struct type *type, char *valaddr, int embedded_offset,
|
||||||
struct value *vt_val;
|
struct value *vt_val;
|
||||||
struct symbol *wsym = (struct symbol *) NULL;
|
struct symbol *wsym = (struct symbol *) NULL;
|
||||||
struct type *wtype;
|
struct type *wtype;
|
||||||
struct symtab *s;
|
|
||||||
struct block *block = (struct block *) NULL;
|
struct block *block = (struct block *) NULL;
|
||||||
int is_this_fld;
|
int is_this_fld;
|
||||||
|
|
||||||
if (msymbol != NULL)
|
if (msymbol != NULL)
|
||||||
wsym = lookup_symbol (DEPRECATED_SYMBOL_NAME (msymbol), block,
|
wsym = lookup_symbol (DEPRECATED_SYMBOL_NAME (msymbol), block,
|
||||||
VAR_DOMAIN, &is_this_fld, &s);
|
VAR_DOMAIN, &is_this_fld, NULL);
|
||||||
|
|
||||||
if (wsym)
|
if (wsym)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1421,7 +1421,6 @@ char *find_imps (struct symtab *symtab, struct block *block,
|
||||||
|
|
||||||
if (tmp == NULL) {
|
if (tmp == NULL) {
|
||||||
|
|
||||||
struct symtab *sym_symtab = NULL;
|
|
||||||
struct symbol *sym = NULL;
|
struct symbol *sym = NULL;
|
||||||
struct minimal_symbol *msym = NULL;
|
struct minimal_symbol *msym = NULL;
|
||||||
|
|
||||||
|
@ -1431,7 +1430,7 @@ char *find_imps (struct symtab *symtab, struct block *block,
|
||||||
if (tmp == NULL)
|
if (tmp == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
sym = lookup_symbol (selector, block, VAR_DOMAIN, 0, &sym_symtab);
|
sym = lookup_symbol (selector, block, VAR_DOMAIN, 0, NULL);
|
||||||
if (sym != NULL)
|
if (sym != NULL)
|
||||||
{
|
{
|
||||||
if (syms)
|
if (syms)
|
||||||
|
|
|
@ -222,13 +222,12 @@ pascal_val_print (struct type *type, char *valaddr, int embedded_offset,
|
||||||
struct value *vt_val;
|
struct value *vt_val;
|
||||||
struct symbol *wsym = (struct symbol *) NULL;
|
struct symbol *wsym = (struct symbol *) NULL;
|
||||||
struct type *wtype;
|
struct type *wtype;
|
||||||
struct symtab *s;
|
|
||||||
struct block *block = (struct block *) NULL;
|
struct block *block = (struct block *) NULL;
|
||||||
int is_this_fld;
|
int is_this_fld;
|
||||||
|
|
||||||
if (msymbol != NULL)
|
if (msymbol != NULL)
|
||||||
wsym = lookup_symbol (DEPRECATED_SYMBOL_NAME (msymbol), block,
|
wsym = lookup_symbol (DEPRECATED_SYMBOL_NAME (msymbol), block,
|
||||||
VAR_DOMAIN, &is_this_fld, &s);
|
VAR_DOMAIN, &is_this_fld, NULL);
|
||||||
|
|
||||||
if (wsym)
|
if (wsym)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue