* @brief Dumps global variables and constants as gas assembler.
* @author Christian Wuerdig, Matthias Braun
* @date 04.11.2005
- * @version $Id$
*/
#include "config.h"
void be_gas_emit_entity(const ir_entity *entity)
{
- if (entity->type == firm_code_type) {
+ if (entity->type == get_code_type()) {
ir_label_t label = get_entity_label(entity);
be_emit_irprintf("%s_%lu", be_gas_get_private_prefix(), label);
return;
void be_gas_emit_block_name(const ir_node *block)
{
- if (has_Block_entity(block)) {
+ if (get_Block_entity(block) != NULL) {
ir_entity *entity = get_Block_entity(block);
be_gas_emit_entity(entity);
} else {
ir_linkage linkage = get_entity_linkage(entity);
/* block labels are already emittet in the code */
- if (type == firm_code_type)
+ if (type == get_code_type())
return;
/* we already emitted all methods. Except for the trampolines which