From 015c0afb4e400c4c5a12f205a2575098a045821e Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Thu, 21 Aug 2008 10:57:35 +0000 Subject: [PATCH] cc_fixed is dead, all hail stickyness_sticky! [r21308] --- ast2firm.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/ast2firm.c b/ast2firm.c index 7d13325..3a2e220 100644 --- a/ast2firm.c +++ b/ast2firm.c @@ -384,28 +384,25 @@ static ir_type *create_method_type(const function_type_t *function_type) unsigned cc = get_method_calling_convention(irtype); switch (function_type->calling_convention) { - case CC_DEFAULT: /* unspecified calling convention, equal to one of the other, typical cdecl */ + case CC_DEFAULT: /* unspecified calling convention, equal to one of the other, typically cdecl */ + case CC_CDECL: is_cdecl: set_method_calling_convention(irtype, SET_CDECL(cc)); break; - case CC_CDECL: - set_method_calling_convention(irtype, cc_fixed | SET_CDECL(cc)); - break; - case CC_STDCALL: if (function_type->variadic || function_type->unspecified_parameters) goto is_cdecl; /* only non-variadic function can use stdcall, else use cdecl */ - set_method_calling_convention(irtype, cc_fixed | SET_STDCALL(cc)); + set_method_calling_convention(irtype, SET_STDCALL(cc)); break; case CC_FASTCALL: if (function_type->variadic || function_type->unspecified_parameters) goto is_cdecl; /* only non-variadic function can use fastcall, else use cdecl */ - set_method_calling_convention(irtype, cc_fixed | SET_FASTCALL(cc)); + set_method_calling_convention(irtype, SET_FASTCALL(cc)); break; case CC_THISCALL: -- 2.20.1