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
6d63bdd8
Commit
6d63bdd8
authored
Nov 30, 2012
by
Christoph Mallon
Browse files
be: inline arch_env_begin_codegeneration() into its only caller.
parent
d96cf3cb
Changes
3
Show whitespace changes
Inline
Side-by-side
ir/be/bearch.c
View file @
6d63bdd8
...
...
@@ -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.
...
...
ir/be/bearch.h
View file @
6d63bdd8
...
...
@@ -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
*/
...
...
ir/be/bemain.c
View file @
6d63bdd8
...
...
@@ -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
;
}
...
...
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