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

From-SVN: r127339
This commit is contained in:
Aldy Hernandez 2007-08-10 15:42:54 +00:00 committed by Aldy Hernandez
parent 5955b0a3d2
commit 6aab184c1d
2 changed files with 4 additions and 18 deletions

View 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

View 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)