Skip to content

Commit

Permalink
asm: fix pass_type()
Browse files Browse the repository at this point in the history
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) <[email protected]>
  • Loading branch information
H. Peter Anvin (Intel) committed Jul 8, 2020
1 parent 422c8c4 commit 91bc518
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion asm/nasm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions include/nasm.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 91bc518

Please sign in to comment.