|
GCC Middle and Back End API Reference
|
#include <physical-location-maker.h>
Public Member Functions | |
| physical_location_maker (line_maps *line_table_) | |
| location_t | new_location_from_file_and_line (const char *filename, int line_num) |
| location_t | new_location_from_file_line_column (const char *filename, int line_num, int column_num) |
Private Member Functions | |
| void | ensure_linemap_for_file_and_line (const char *filename, int linenum) |
Private Attributes | |
| line_maps * | m_line_table |
A class for generating location_t values for arbitrary filename/line/column values. This is less efficient than working with the line_maps directly, but is more convenient and flexible for occasional on-demand location_t values.
|
inline |
References m_line_table.
|
private |
References m_line_table, map, and UNKNOWN_LOCATION.
Referenced by new_location_from_file_and_line(), and new_location_from_file_line_column().
| location_t diagnostics::physical_location_maker::new_location_from_file_and_line | ( | const char * | filename, |
| int | line_num ) |
References ensure_linemap_for_file_and_line(), and m_line_table.
| location_t diagnostics::physical_location_maker::new_location_from_file_line_column | ( | const char * | filename, |
| int | line_num, | ||
| int | column_num ) |
References ensure_linemap_for_file_and_line(), and m_line_table.
Referenced by gcc_json_context::make_location_for_point().
|
private |