GCC Middle and Back End API Reference
file-prefix-map.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void add_macro_prefix_map (const char *)
 
void add_debug_prefix_map (const char *)
 
void add_file_prefix_map (const char *)
 
void add_profile_prefix_map (const char *)
 
const char * remap_macro_filename (const char *)
 
const char * remap_debug_filename (const char *)
 
const char * remap_profile_filename (const char *)
 

Variables

bool flag_canon_prefix_map
 

Function Documentation

◆ add_debug_prefix_map()

void add_debug_prefix_map ( const char * arg)
Record a file prefix mapping for -fdebug-prefix-map.   

References add_prefix_map(), and debug_prefix_maps.

Referenced by handle_common_deferred_options().

◆ add_file_prefix_map()

void add_file_prefix_map ( const char * arg)
Record a file prefix mapping for all -f*-prefix-map.   

References add_prefix_map(), debug_prefix_maps, macro_prefix_maps, and profile_prefix_maps.

Referenced by handle_common_deferred_options().

◆ add_macro_prefix_map()

void add_macro_prefix_map ( const char * arg)
Declarations for file prefix remapping support (-f*-prefix-map options).
Copyright (C) 2017-2024 Free Software Foundation, Inc.

This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 3, or (at your option) any
later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.   
Record a file prefix mapping for -fmacro-prefix-map.   

References add_prefix_map(), and macro_prefix_maps.

◆ add_profile_prefix_map()

void add_profile_prefix_map ( const char * arg)
Record a file prefix mapping for -fprofile-prefix-map.   

References add_prefix_map(), and profile_prefix_maps.

Referenced by handle_common_deferred_options().

◆ remap_debug_filename()

const char * remap_debug_filename ( const char * filename)
Remap using -fdebug-prefix-map.  Return the GC-allocated new name
corresponding to FILENAME or FILENAME if no remapping was performed.   

References debug_prefix_maps, and remap_filename().

Referenced by comp_dir_string(), lto_output_location_1(), output_file_directive(), and print_decl_identifier().

◆ remap_macro_filename()

const char * remap_macro_filename ( const char * filename)
Remap using -fmacro-prefix-map.  Return the GC-allocated new name
corresponding to FILENAME or FILENAME if no remapping was performed.   

References macro_prefix_maps, and remap_filename().

Referenced by fold_builtin_FILE().

◆ remap_profile_filename()

const char * remap_profile_filename ( const char * filename)
Remap using -fprofile-prefix-map.  Return the GC-allocated new name
corresponding to FILENAME or FILENAME if no remapping was performed.   

References profile_prefix_maps, and remap_filename().

Referenced by coverage_begin_function(), and output_location().

Variable Documentation

◆ flag_canon_prefix_map

bool flag_canon_prefix_map
extern
Command line option handling.
   Copyright (C) 2002-2024 Free Software Foundation, Inc.
   Contributed by Neil Booth.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Software Foundation; either version 3, or (at your option) any later
version.

GCC is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
for more details.

You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.   
In this file all option sets are explicit.   
Set by -fcanon-prefix-map.   

Referenced by add_prefix_map(), common_handle_option(), and handle_common_deferred_options().