Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
8191fe60
Commit
8191fe60
authored
Nov 08, 2005
by
Michael Beck
Browse files
calling convetions are now read from the method type
[r6888]
parent
4dcca4dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/tr/mangle.c
View file @
8191fe60
...
...
@@ -13,13 +13,13 @@
# include "config.h"
#endif
#
include "mangle.h"
#
include "obst.h"
#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 +102,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
(
en
t
);
unsigned
cc_mask
=
get_
method
_calling_convention
(
t
p
);
char
buf
[
16
];
int
size
,
i
;
...
...
@@ -117,7 +117,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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment