passes: Move #undef to pass-instances.def
Like what was done r6-4608-g0aad01985747ab for builtins.def/DEF_BUILTIN, the same should be done for the defines that are used for pass-instances.def. Bootstrapped and tested on x86_64-linux-gnu. gcc/ChangeLog: * gen-pass-instances.awk: Print out the #undefs. * pass_manager.h: Don't #undef INSERT_PASSES_AFTER, PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES, NEXT_PASS, NEXT_PASS_WITH_ARG, and TERMINATE_PASS_LIST. * passes.cc: Likewise. Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
This commit is contained in:
parent
8c56d697b3
commit
56efa627cb
3 changed files with 7 additions and 20 deletions
|
@ -248,6 +248,13 @@ END {
|
|||
|
||||
print lines[i];
|
||||
}
|
||||
# print out the #undefs
|
||||
print "#undef INSERT_PASSES_AFTER"
|
||||
print "#undef PUSH_INSERT_PASSES_WITHIN"
|
||||
print "#undef POP_INSERT_PASSES"
|
||||
print "#undef NEXT_PASS"
|
||||
print "#undef NEXT_PASS_WITH_ARG"
|
||||
print "#undef TERMINATE_PASS_LIST"
|
||||
}
|
||||
|
||||
# Local Variables:
|
||||
|
|
|
@ -134,13 +134,6 @@ private:
|
|||
|
||||
#include "pass-instances.def"
|
||||
|
||||
#undef INSERT_PASSES_AFTER
|
||||
#undef PUSH_INSERT_PASSES_WITHIN
|
||||
#undef POP_INSERT_PASSES
|
||||
#undef NEXT_PASS
|
||||
#undef NEXT_PASS_WITH_ARG
|
||||
#undef TERMINATE_PASS_LIST
|
||||
|
||||
}; // class pass_manager
|
||||
|
||||
} // namespace gcc
|
||||
|
|
|
@ -1591,12 +1591,6 @@ pass_manager::pass_manager (context *ctxt)
|
|||
#define NEXT_PASS_WITH_ARG(PASS, NUM, ARG) NEXT_PASS (PASS, NUM)
|
||||
#define TERMINATE_PASS_LIST(PASS)
|
||||
#include "pass-instances.def"
|
||||
#undef INSERT_PASSES_AFTER
|
||||
#undef PUSH_INSERT_PASSES_WITHIN
|
||||
#undef POP_INSERT_PASSES
|
||||
#undef NEXT_PASS
|
||||
#undef NEXT_PASS_WITH_ARG
|
||||
#undef TERMINATE_PASS_LIST
|
||||
|
||||
/* Initialize the pass_lists array. */
|
||||
#define DEF_PASS_LIST(LIST) pass_lists[PASS_LIST_NO_##LIST] = &LIST;
|
||||
|
@ -1643,13 +1637,6 @@ pass_manager::pass_manager (context *ctxt)
|
|||
|
||||
#include "pass-instances.def"
|
||||
|
||||
#undef INSERT_PASSES_AFTER
|
||||
#undef PUSH_INSERT_PASSES_WITHIN
|
||||
#undef POP_INSERT_PASSES
|
||||
#undef NEXT_PASS
|
||||
#undef NEXT_PASS_WITH_ARG
|
||||
#undef TERMINATE_PASS_LIST
|
||||
|
||||
/* Register the passes with the tree dump code. */
|
||||
register_dump_files (all_lowering_passes);
|
||||
register_dump_files (all_small_ipa_passes);
|
||||
|
|
Loading…
Add table
Reference in a new issue