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
b46379ad
Commit
b46379ad
authored
Nov 27, 2008
by
Michael Beck
Browse files
- BugFix: drop wrong dependency of mode_P
[r24071]
parent
72f71b76
Changes
1
Show whitespace changes
Inline
Side-by-side
ir/ir/irprofile.c
View file @
b46379ad
...
...
@@ -122,7 +122,7 @@ instrument_block(ir_node *bb, ir_node *address, unsigned int id)
unknown
=
new_r_Unknown
(
irg
,
mode_M
);
cnst
=
new_r_Const_long
(
irg
,
mode_Iu
,
get_mode_size_bytes
(
mode_Iu
)
*
id
);
offset
=
new_r_Add
(
irg
,
bb
,
address
,
cnst
,
mode_P
);
offset
=
new_r_Add
(
irg
,
bb
,
address
,
cnst
,
get_modeP_data
()
);
load
=
new_r_Load
(
irg
,
bb
,
unknown
,
offset
,
mode_Iu
);
projm
=
new_r_Proj
(
irg
,
bb
,
load
,
mode_M
,
pn_Load_M
);
proji
=
new_r_Proj
(
irg
,
bb
,
load
,
mode_Iu
,
pn_Load_res
);
...
...
@@ -216,8 +216,8 @@ gen_initializer_irg(ir_entity * ent_filename, ir_entity * bblock_id, ir_entity *
set_entity_ld_ident
(
ent
,
name
);
uint
=
new_type_primitive
(
new_id_from_str
(
"__uint"
),
mode_Iu
);
uintptr
=
new_type_pointer
(
new_id_from_str
(
"__uintptr"
),
uint
,
mode_P
);
string
=
new_type_pointer
(
new_id_from_str
(
"__charptr"
),
new_type_primitive
(
new_id_from_str
(
"__char"
),
mode_Bs
),
mode_P
);
uintptr
=
new_type_pointer
(
new_id_from_str
(
"__uintptr"
),
uint
,
get_modeP_data
()
);
string
=
new_type_pointer
(
new_id_from_str
(
"__charptr"
),
new_type_primitive
(
new_id_from_str
(
"__char"
),
mode_Bs
),
get_modeP_data
()
);
set_method_param_type
(
init_type
,
0
,
string
);
set_method_param_type
(
init_type
,
1
,
uintptr
);
...
...
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