Commit 6d63bdd8 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

be: inline arch_env_begin_codegeneration() into its only caller.

parent d96cf3cb
......@@ -48,13 +48,6 @@ arch_register_req_t const arch_no_requirement = {
0
};
/* Initialize the architecture environment struct. */
arch_env_t *arch_env_begin_codegeneration(const arch_isa_if_t *isa_if)
{
arch_env_t *arch_env = isa_if->begin_codegeneration();
return arch_env;
}
/**
* Get the isa responsible for a node.
* @param irn The node to get the responsible isa for.
......
......@@ -212,11 +212,6 @@ static inline unsigned arch_get_irn_n_outs(const ir_node *node)
#define be_foreach_out(node, i) \
for (unsigned i = 0, i##__n = arch_get_irn_n_outs(node); i != i##__n; ++i)
/**
* Start codegeneration
*/
arch_env_t *arch_env_begin_codegeneration(const arch_isa_if_t *isa);
/**
* Register an instruction set architecture
*/
......
......@@ -407,11 +407,11 @@ static be_main_env_t *be_init_env(be_main_env_t *const env, char const *const co
env->ent_pic_symbol_map = pmap_create();
env->pic_symbols_type = new_type_struct(NEW_ID("$PIC_SYMBOLS_TYPE"));
env->cup_name = compilation_unit_name;
env->arch_env = isa_if->begin_codegeneration();
set_class_final(env->pic_trampolines_type, 1);
memset(asm_constraint_flags, 0, sizeof(asm_constraint_flags));
env->arch_env = arch_env_begin_codegeneration(isa_if);
return env;
}
......
Supports Markdown
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