mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-12-16 23:43:39 +08:00
* tree-flow-inline.h (get_filename): Remove.
From-SVN: r127339
This commit is contained in:
parent
5955b0a3d2
commit
6aab184c1d
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user