asm: fix pass_type()

Update the table used by pass_type() to give the name of the pass
type. It was not updated properly after PASS_PREPROC was added.

Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
This commit is contained in:
H. Peter Anvin (Intel) 2020-07-08 09:14:58 -07:00
parent 422c8c4f1e
commit 91bc518895
2 changed files with 3 additions and 1 deletions

View File

@ -105,7 +105,7 @@ bool tasm_compatible_mode = false;
enum pass_type _pass_type;
const char * const _pass_types[] =
{
"init", "first", "optimize", "stabilize", "final"
"init", "preproc-only", "first", "optimize", "stabilize", "final"
};
int64_t _passn;
int globalrel = 0;

View File

@ -1280,6 +1280,8 @@ struct optimization {
/*
* Various types of compiler passes we may execute.
* If these are changed, you need to also change _pass_types[]
* in asm/nasm.c.
*/
enum pass_type {
PASS_INIT, /* Initialization, not doing anything yet */