Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
7bf8f092
Commit
7bf8f092
authored
Dec 08, 2015
by
Christoph Mallon
Browse files
tr: Remove 'set_pointer_mode()'.
parent
9360f8e6
Changes
3
Hide whitespace changes
Inline
Side-by-side
include/libfirm/typerep.h
View file @
7bf8f092
...
...
@@ -1427,9 +1427,6 @@ FIRM_API int is_Array_type(const ir_type *array);
/** Creates a new type pointer. */
FIRM_API
ir_type
*
new_type_pointer
(
ir_type
*
points_to
);
/** Set mode of a pointer typer. */
FIRM_API
void
set_pointer_mode
(
ir_type
*
pointer
,
ir_mode
*
mode
);
/** Sets the type to which a pointer points to. */
FIRM_API
void
set_pointer_points_to_type
(
ir_type
*
pointer
,
ir_type
*
tp
);
...
...
ir/ir/irio.c
View file @
7bf8f092
...
...
@@ -654,7 +654,6 @@ static void write_type_pointer(write_env_t *env, ir_type *tp)
write_type
(
env
,
points_to
);
write_type_common
(
env
,
tp
);
write_mode_ref
(
env
,
get_type_mode
(
tp
));
write_type_ref
(
env
,
points_to
);
fputc
(
'\n'
,
env
->
file
);
}
...
...
@@ -1703,10 +1702,8 @@ static void read_type(read_env_t *env)
}
case
tpo_pointer
:
{
ir_mode
*
mode
=
read_mode_ref
(
env
);
ir_type
*
pointsto
=
get_type
(
env
,
read_long
(
env
));
type
=
new_type_pointer
(
pointsto
);
set_pointer_mode
(
type
,
mode
);
goto
finish_type
;
}
...
...
ir/tr/type.c
View file @
7bf8f092
...
...
@@ -871,14 +871,6 @@ int (is_Pointer_type)(const ir_type *pointer)
return
is_pointer_type_
(
pointer
);
}
void
set_pointer_mode
(
ir_type
*
tp
,
ir_mode
*
mode
)
{
assert
(
is_Pointer_type
(
tp
));
assert
(
mode_is_reference
(
mode
));
tp
->
size
=
get_mode_size_bytes
(
mode
);
tp
->
mode
=
mode
;
}
ir_type
*
find_pointer_type_to_type
(
ir_type
*
tp
)
{
for
(
size_t
i
=
0
,
n
=
get_irp_n_types
();
i
<
n
;
++
i
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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