[debug-early] remove file_table_last_lookup
diff mbox

Message ID 54CBDA42.9040109@redhat.com
State New
Headers show

Commit Message

Aldy Hernandez Jan. 30, 2015, 7:23 p.m. UTC
On 01/30/2015 11:01 AM, Aldy Hernandez wrote:
> We haven't been using this for a looong time.  It never even gets defined.
>
> Removed and committed to branch.
>
> Aldy

Ughh, I'm having git rebase issues.  I was missing part of the patch. 
Here's the rest.

Committed to branch.

Aldy

Patch
diff mbox

diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 188710e..33738d9 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -21733,14 +21733,6 @@  lookup_filename (const char *file_name)
 {
   struct dwarf_file_data * created;
 
-  /* Check to see if the file name that was searched on the previous
-     call matches this file name.  If so, return the index.  */
-  if (file_table_last_lookup
-      && (file_name == file_table_last_lookup->filename
-	  || filename_cmp (file_table_last_lookup->filename, file_name) == 0))
-    return file_table_last_lookup;
-
-  /* Didn't match the previous lookup, search the table.  */
   dwarf_file_data **slot
     = file_table->find_slot_with_hash (file_name, htab_hash_string (file_name),
 				       INSERT);