Commit 7bf8f092 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

tr: Remove 'set_pointer_mode()'.

parent 9360f8e6
......@@ -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);
......
......@@ -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;
}
......
......@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment