X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Ftr%2Fmangle.c;h=8f283600f6623f598e1b895ab5db7e0e675a21ec;hb=28e1715f2331a319bc8451941e043ac0534af7ac;hp=9cd6ad7a3c2d8556a39fa3388526839ffca54310;hpb=7481253cfeee6d29f432efcdfab42e4278b1154f;p=libfirm diff --git a/ir/tr/mangle.c b/ir/tr/mangle.c index 9cd6ad7a3..8f283600f 100644 --- a/ir/tr/mangle.c +++ b/ir/tr/mangle.c @@ -13,13 +13,17 @@ # include "config.h" #endif -# include "mangle.h" -# include "obst.h" +#ifdef HAVE_STDIO_H +# include +#endif + +#include "mangle.h" +#include "obst.h" /* Make types visible to allow most efficient access */ -# include "entity_t.h" -# include "type_t.h" -# include "tpop_t.h" +#include "entity_t.h" +#include "type_t.h" +#include "tpop_t.h" /** a obstack used for temporary space */ static struct obstack mangle_obst; @@ -102,7 +106,7 @@ ident *mangle_u (ident *first, ident* scnd) { /* returns a mangled name for a Win32 function using it's calling convention */ ident *decorate_win32_c_fkt(entity *ent) { type *tp = get_entity_type(ent); - unsigned cc_mask = get_entity_calling_convention(ent); + unsigned cc_mask = get_method_calling_convention(tp); char buf[16]; int size, i; @@ -117,7 +121,7 @@ ident *decorate_win32_c_fkt(entity *ent) { snprintf(buf, sizeof(buf), "@%d", size); - if (cc_mask & irg_cc_reg_param) + if (cc_mask & cc_reg_param) return mangle3("@", get_entity_ident(ent), buf); else return mangle3("_", get_entity_ident(ent), buf);