mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-12 02:16:17 +00:00
assembler: Add the input filename to the error/warning messages
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
This commit is contained in:
parent
95b12082d2
commit
1eb622a847
@ -47,6 +47,8 @@ extern long int gen_level;
|
|||||||
#define WARN_ALL (1 << 31)
|
#define WARN_ALL (1 << 31)
|
||||||
extern unsigned int warning_flags;
|
extern unsigned int warning_flags;
|
||||||
|
|
||||||
|
extern char *input_filename;
|
||||||
|
|
||||||
extern struct brw_context genasm_context;
|
extern struct brw_context genasm_context;
|
||||||
extern struct brw_compile genasm_compile;
|
extern struct brw_compile genasm_compile;
|
||||||
|
|
||||||
|
@ -120,10 +120,10 @@ static void message(enum message_level level, YYLTYPE *location,
|
|||||||
va_list args;
|
va_list args;
|
||||||
|
|
||||||
if (location)
|
if (location)
|
||||||
fprintf(stderr, "%d:%d: %s: ", location->first_line,
|
fprintf(stderr, "%s:%d:%d: %s: ", input_filename, location->first_line,
|
||||||
location->first_column, level_str[level]);
|
location->first_column, level_str[level]);
|
||||||
else
|
else
|
||||||
fprintf(stderr, "%s: ", level_str[level]);
|
fprintf(stderr, "%s:%s: ", input_filename, level_str[level]);
|
||||||
|
|
||||||
va_start(args, fmt);
|
va_start(args, fmt);
|
||||||
vfprintf(stderr, fmt, args);
|
vfprintf(stderr, fmt, args);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user