Fixed name mangling for private entities
[libfirm] / ir / be / ppc32 / bearch_ppc32.c
index 9789a95..64a67a0 100644 (file)
@@ -37,7 +37,7 @@
 #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"
@@ -55,8 +55,8 @@
 
 #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"
@@ -160,8 +160,8 @@ static ir_type *ppc32_abi_get_between_type(void *self)
 
        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);
@@ -230,7 +230,6 @@ static const be_abi_callbacks_t ppc32_abi_callbacks = {
 
 static const arch_irn_ops_t ppc32_irn_ops = {
        get_ppc32_in_req,
-       get_ppc32_out_req,
        ppc32_classify,
        ppc32_get_frame_entity,
        ppc32_set_frame_entity,
@@ -505,9 +504,7 @@ static void ppc32_collect_symconsts_walk(ir_node *node, void *env) {
 
        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);
        }
 }
 
@@ -563,7 +560,7 @@ static void ppc32_dump_indirect_symbols(ppc32_isa_t *isa) {
 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);
 
@@ -622,8 +619,7 @@ static void ppc32_get_call_abi(const void *self, ir_type *method_type, be_abi_ca
        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);