#include "debug.h"
#include "error.h"
-#include "../bearch.h" /* the general register allocator interface */
+#include "../bearch.h"
#include "../benode.h"
#include "../belower.h"
#include "../besched.h"
#include "bearch_ppc32_t.h"
-#include "ppc32_new_nodes.h" /* ppc nodes interface */
-#include "gen_ppc32_regalloc_if.h" /* the generated interface (register type and class defenitions) */
+#include "ppc32_new_nodes.h"
+#include "gen_ppc32_regalloc_if.h"
#include "ppc32_transform.h"
#include "ppc32_transform_conv.h"
#include "ppc32_emitter.h"
if(!between_type) {
ir_entity *ret_addr_ent;
- ir_type *ret_addr_type = new_type_primitive(new_id_from_str("return_addr"), mode_P);
- ir_type *old_bp_type = new_type_primitive(new_id_from_str("bp"), mode_P);
+ ir_type *ret_addr_type = new_type_primitive(mode_P);
+ ir_type *old_bp_type = new_type_primitive(mode_P);
between_type = new_type_class(new_id_from_str("ppc32_between_type"));
old_bp_ent = new_entity(between_type, new_id_from_str("old_bp"), old_bp_type);
if (is_SymConst(node)) {
ir_entity *ent = get_SymConst_entity(node);
- set_entity_backend_marked(ent, 1);
- if (! is_direct_entity(ent))
- pset_insert_ptr(symbol_set, ent);
+ pset_insert_ptr(symbol_set, ent);
}
}
static void ppc32_done(void *self) {
ppc32_isa_t *isa = self;
- be_gas_emit_decls(isa->arch_env.main_env, 1);
+ be_gas_emit_decls(isa->arch_env.main_env);
be_gas_emit_switch_section(GAS_SECTION_DATA);
ppc32_dump_indirect_symbols(isa);
be_abi_call_flags_t call_flags = { { 0, 0, 1, 0, 0, 0, 1 } };
(void) self;
- if(get_type_visibility(method_type)!=visibility_external_allocated)
- call_flags.bits.call_has_imm = 1;
+ call_flags.bits.call_has_imm = 1;
/* set stack parameter passing style */
be_abi_call_set_flags(abi, call_flags, &ppc32_abi_callbacks);