public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [patch] committed: remove get_filename()
@ 2007-08-10 15:39 Aldy Hernandez
  0 siblings, 0 replies; only message in thread
From: Aldy Hernandez @ 2007-08-10 15:39 UTC (permalink / raw)
  To: gcc-patches

In converting the tree cfg pass, I've noticed this is no longer used.

Diego said it was ok to remove.

Committed to mainline.

	* tree-flow-inline.h (get_filename): Remove.

Index: tree-flow-inline.h
===================================================================
--- tree-flow-inline.h	(revision 127336)
+++ tree-flow-inline.h	(working copy)
@@ -327,24 +327,6 @@ get_lineno (tree expr)
   return EXPR_LINENO (expr);
 }
 
-/* Return the file name for EXPR, or return "???" if we have no
-   filename information.  */
-static inline const char *
-get_filename (tree expr)
-{
-  const char *filename;
-  if (expr == NULL_TREE)
-    return "???";
-
-  if (TREE_CODE (expr) == COMPOUND_EXPR)
-    expr = TREE_OPERAND (expr, 0);
-
-  if (EXPR_HAS_LOCATION (expr) && (filename = EXPR_FILENAME (expr)))
-    return filename;
-  else
-    return "???";
-}
-
 /* Return true if T is a noreturn call.  */
 static inline bool
 noreturn_call_p (tree t)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-08-10 15:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-10 15:39 [patch] committed: remove get_filename() Aldy Hernandez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).