summaryrefslogtreecommitdiffhomepage
path: root/ir/ident
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2012-02-19 16:48:52 +0100
committerMatthias Braun <matze@braunis.de>2012-02-19 16:48:52 +0100
commit5abcc4841bb185ed413379dacf8e00a2e379236b (patch)
treea4698fab8701e41a6770aed24354aa9957cff8a3 /ir/ident
parentddf69cf33b438b757104f55c2de521e5c8bdf3b6 (diff)
remove id_decorate_win32_c_fkt
Mangling logic should not be in the ident module, frontends should provide it (there's also the compilerlib interface for it)
Diffstat (limited to 'ir/ident')
-rw-r--r--ir/ident/mangle.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/ir/ident/mangle.c b/ir/ident/mangle.c
index f9b3ed1..fd2af1a 100644
--- a/ir/ident/mangle.c
+++ b/ir/ident/mangle.c
@@ -126,32 +126,6 @@ ident *id_mangle_dot(ident *first, ident *scnd)
return id_mangle_3(first, '.', scnd);
}
-/* returns a mangled name for a Win32 function using its calling convention */
-ident *id_decorate_win32_c_fkt(const ir_entity *ent, ident *id)
-{
- ir_type *tp = get_entity_type(ent);
- unsigned cc_mask = get_method_calling_convention(tp);
- char buf[16];
-
- if (IS_CDECL(cc_mask))
- return id_mangle3("_", id, "");
- else if (IS_STDCALL(cc_mask)) {
- size_t i, size = 0;
-
- for (i = get_method_n_params(tp); i > 0;) {
- size += get_type_size_bytes(get_method_param_type(tp, --i));
- }
-
- ir_snprintf(buf, sizeof(buf), "@%zu", size);
-
- if (cc_mask & cc_reg_param)
- return id_mangle3("@", id, buf);
- else
- return id_mangle3("_", id, buf);
- }
- return id;
-}
-
void firm_init_mangle(void)
{
obstack_init(&mangle_obst);