summaryrefslogtreecommitdiff
path: root/gcc/tree-flow-inline.h
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2007-08-10 15:42:54 +0000
committerAldy Hernandez <aldyh@gcc.gnu.org>2007-08-10 15:42:54 +0000
commit6aab184c1de84bc279b20b8e7d4e2370fdf87a15 (patch)
treec260421c91e5e33644604cf63e1941f6de00d096 /gcc/tree-flow-inline.h
parent5955b0a3d268cc6967a77e302b4d6dbeedff3d24 (diff)
downloadgcc-6aab184c1de84bc279b20b8e7d4e2370fdf87a15.tar.gz
* tree-flow-inline.h (get_filename): Remove.
From-SVN: r127339
Diffstat (limited to 'gcc/tree-flow-inline.h')
-rw-r--r--gcc/tree-flow-inline.h18
1 files changed, 0 insertions, 18 deletions
diff --git a/gcc/tree-flow-inline.h b/gcc/tree-flow-inline.h
index b9c78341cd4..ae55c3f4f6d 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)