diff options
Diffstat (limited to 'gcc/tree-dump.c')
-rw-r--r-- | gcc/tree-dump.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/tree-dump.c b/gcc/tree-dump.c index 296d19c992e..c3696336c44 100644 --- a/gcc/tree-dump.c +++ b/gcc/tree-dump.c @@ -321,18 +321,18 @@ dequeue_and_dump (dump_info_p di) queue_and_dump_type (di, t); dump_child ("scpe", DECL_CONTEXT (t)); /* And a source position. */ - if (TREE_FILENAME (t)) + if (DECL_SOURCE_FILE (t)) { - const char *filename = strrchr (TREE_FILENAME (t), '/'); + const char *filename = strrchr (DECL_SOURCE_FILE (t), '/'); if (!filename) - filename = TREE_FILENAME (t); + filename = DECL_SOURCE_FILE (t); else /* Skip the slash. */ ++filename; dump_maybe_newline (di); fprintf (di->stream, "srcp: %s:%-6d ", filename, - TREE_LINENO (t)); + DECL_SOURCE_LINE (t)); di->column += 6 + strlen (filename) + 8; } /* And any declaration can be compiler-generated. */ |