* tree-flow-inline.h (get_filename): Remove.
authoraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 10 Aug 2007 15:42:54 +0000 (15:42 +0000)
committeraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 10 Aug 2007 15:42:54 +0000 (15:42 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127339 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/tree-flow-inline.h

index d514d48..7252dee 100644 (file)
@@ -1,3 +1,7 @@
+2007-08-10  Aldy Hernandez  <aldyh@redhat.com>
+
+       * tree-flow-inline.h (get_filename): Remove.
+
 2007-08-10  Richard Sandiford  <richard@codesourcery.com>
 
        * config/mips/mips-protos.h (mips_address_insns): Add a boolean
index b9c7834..ae55c3f 100644 (file)
@@ -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)