summaryrefslogtreecommitdiff
path: root/gcc/cp/repo.c
diff options
context:
space:
mode:
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2001-03-10 16:33:57 +0000
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2001-03-10 16:33:57 +0000
commit40275504f40ddda6c6c1da806ba015e285f7aec2 (patch)
treed953f81b3d415118c0d7a5ca54539ad4d240cdd3 /gcc/cp/repo.c
parentd8b5f80e5174a688edca11b669254cd598f51c2b (diff)
downloadgcc-40275504f40ddda6c6c1da806ba015e285f7aec2.tar.gz
* toplev.c (file_name_nondirectory): Remove.
* toplev.h: Similarly. * dwarf2out.c (compute_section_prefix): Use lbasename instead of file_name_nondirectory. * cp/lex.c: Delete duplicate pending_lang_change. * cp/lex.c (handle_pragma_interface, handle_pragma_implementation): Similarly. * cp/repo.c (get_base_filename, open_repo_file): Similarly. * cp/cp-tree.h: Remove file_name_nondirectory prototype. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40369 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/repo.c')
-rw-r--r--gcc/cp/repo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cp/repo.c b/gcc/cp/repo.c
index e86e1f0805b..897648a0b28 100644
--- a/gcc/cp/repo.c
+++ b/gcc/cp/repo.c
@@ -268,7 +268,7 @@ get_base_filename (filename)
return NULL;
}
- return file_name_nondirectory (filename);
+ return lbasename (filename);
}
static void
@@ -281,7 +281,7 @@ open_repo_file (filename)
if (s == NULL)
return;
- p = file_name_nondirectory (s);
+ p = lbasename (s);
p = strrchr (p, '.');
if (! p)
p = s + strlen (s);