(nlm_symfile_read): Use SYMBOL_CLASS to access symbol class.

This commit is contained in:
Stu Grossman 1994-06-09 15:32:46 +00:00
parent 64bb143c6b
commit 7314b3ee04

View file

@ -227,7 +227,7 @@ nlm_symfile_read (objfile, section_offsets, mainline)
mainsym = lookup_symbol ("main", NULL, VAR_NAMESPACE, NULL, NULL);
if (mainsym
&& mainsym->class == LOC_BLOCK)
&& SYMBOL_CLASS(mainsym) == LOC_BLOCK)
{
objfile->ei.main_func_lowpc = BLOCK_START (SYMBOL_BLOCK_VALUE (mainsym));
objfile->ei.main_func_highpc = BLOCK_END (SYMBOL_BLOCK_VALUE (mainsym));