aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/tree-flow-inline.h18
2 files changed, 4 insertions, 18 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index d514d48..7252dee 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/tree-flow-inline.h b/gcc/tree-flow-inline.h
index b9c7834..ae55c3f 100644
--- a/gcc/tree-flow-inline.h
+++ b/gcc/tree-flow-inline.h
@@ -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)