diff options
author | H. Peter Anvin <hpa@zytor.com> | 2020-07-05 15:27:04 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2020-07-05 15:27:04 -0700 |
commit | 63769c588e2d0ecc49b898c0a5c035cf0d11e78e (patch) | |
tree | ce7859cca6de47fb384238187181071af909add9 /include | |
parent | 37c0942409298317aa5206f09250527793b3b593 (diff) | |
parent | 122c5fb75986adc37dfb147cc2a613e3ebc66e80 (diff) | |
download | nasm-63769c588e2d0ecc49b898c0a5c035cf0d11e78e.tar.gz |
Merge remote-tracking branch 'github/nasm-2.15.xx'
Diffstat (limited to 'include')
-rw-r--r-- | include/nasm.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/nasm.h b/include/nasm.h index 046f5fb9..616ffb37 100644 --- a/include/nasm.h +++ b/include/nasm.h @@ -428,7 +428,6 @@ static inline char *nasm_skip_identifier(const char *str) enum { LIST_READ, LIST_MACRO, - LIST_MACRO_NOLIST, LIST_INCLUDE, LIST_INCBIN, LIST_TIMES @@ -1284,6 +1283,7 @@ struct optimization { */ enum pass_type { PASS_INIT, /* Initialization, not doing anything yet */ + PASS_PREPROC, /* Preprocess-only mode (similar to PASS_FIRST) */ PASS_FIRST, /* The very first pass over the code */ PASS_OPT, /* Optimization pass */ PASS_STAB, /* Stabilization pass (original pass 1) */ @@ -1319,6 +1319,11 @@ static inline bool pass_final(void) { return pass_type() >= PASS_FINAL; } +/* True for code generation *or* preprocess-only mode */ +static inline bool pass_final_or_preproc(void) +{ + return pass_type() >= PASS_FINAL || pass_type() == PASS_PREPROC; +} /* * The actual pass number. 0 is used during initialization, the very |