jcf-parse.c (set_source_filename): Set the decl source location even when returning early.
* jcf-parse.c (set_source_filename): Set the decl source location even when returning early. From-SVN: r108662
This commit is contained in:
parent
cb1783951e
commit
2eefc7734e
2 changed files with 12 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2005-12-16 Alexandre Oliva <aoliva@redhat.com>
|
||||
|
||||
* jcf-parse.c (set_source_filename): Set the decl source location
|
||||
even when returning early.
|
||||
|
||||
2005-12-15 Tom Tromey <tromey@redhat.com>
|
||||
Andrew Haley <aph@redhat.com>
|
||||
|
||||
|
|
|
@ -142,7 +142,13 @@ set_source_filename (JCF *jcf, int index)
|
|||
&& strcmp (sfname, old_filename + old_len - new_len) == 0
|
||||
&& (old_filename[old_len - new_len - 1] == '/'
|
||||
|| old_filename[old_len - new_len - 1] == '\\'))
|
||||
return;
|
||||
{
|
||||
#ifndef USE_MAPPED_LOCATION
|
||||
DECL_SOURCE_LOCATION (TYPE_NAME (current_class)) = input_location;
|
||||
file_start_location = input_location;
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (strchr (sfname, '/') == NULL && strchr (sfname, '\\') == NULL)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue