- fprintf(F, "\n%s variability: ", prefix);
- switch (get_entity_variability(ent)) {
- X(variability_uninitialized);
- X(variability_initialized);
- X(variability_part_constant);
- X(variability_constant);
+ if (mask) {
+ fprintf(F, "\n%s additional prop: ", prefix);
+
+ if (mask & mtp_property_const) fprintf(F, "const_function, ");
+ if (mask & mtp_property_pure) fprintf(F, "pure_function, ");
+ if (mask & mtp_property_noreturn) fprintf(F, "noreturn_function, ");
+ if (mask & mtp_property_nothrow) fprintf(F, "nothrow_function, ");
+ if (mask & mtp_property_naked) fprintf(F, "naked_function, ");
+ }
+ fprintf(F, "\n%s calling convention: ", prefix);
+ if (cc & cc_reg_param) fprintf(F, "regparam, ");
+ if (cc & cc_this_call) fprintf(F, "thiscall, ");
+ if (IS_CDECL(cc))
+ fprintf(F, "cdecl");
+ else if (IS_STDCALL(cc))
+ fprintf(F, "stdcall");
+ else {
+ fprintf(F, (cc & cc_last_on_top) ? "last param on top, " : "first param on top, ");
+ fprintf(F, (cc & cc_callee_clear_stk) ? "callee clear stack" : "caller clear stack");
+ }