#include "tree-cfg.h"
#include "dumpfile.h"
#include "print-tree.h"
+#include "file-prefix-map.h"
/* Define the hash table of nodes already seen.
Such nodes are not repeated; brief cross-references are used. */
{
expanded_location loc
= expand_location (DECL_SOURCE_LOCATION (decl));
- fprintf (file, "%s:%d:%d", loc.file, loc.line, loc.column);
+ const char *f = flags & PRINT_DECL_REMAP_DEBUG
+ ? remap_debug_filename (loc.file)
+ : loc.file;
+ fprintf (file, "%s:%d:%d", f, loc.line, loc.column);
}
needs_colon = true;
}
#define PRINT_DECL_ORIGIN 0x1
#define PRINT_DECL_NAME 0x2
#define PRINT_DECL_UNIQUE_NAME 0x4
+#define PRINT_DECL_REMAP_DEBUG 0x8
extern void print_decl_identifier (FILE *, tree, int flags);
#endif // GCC_PRINT_TREE_H
if (stack_usage_file)
{
print_decl_identifier (stack_usage_file, current_function_decl,
- PRINT_DECL_ORIGIN | PRINT_DECL_NAME);
+ PRINT_DECL_ORIGIN | PRINT_DECL_NAME
+ | PRINT_DECL_REMAP_DEBUG);
fprintf (stack_usage_file, "\t" HOST_WIDE_INT_PRINT_DEC"\t%s\n",
stack_usage, stack_usage_kind_str[stack_usage_kind]);
}