3 * File name: ir/debug/dbginfo.c
4 * Purpose: Implements the Firm interface to debug information.
5 * Author: Goetz Lindenmaier
9 * Copyright: (c) 2001-2003 Universität Karlsruhe
10 * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE.
18 #include "dbginfo_t.h"
25 dbg_info_merge_pair(ir_node *nw, ir_node *old, dbg_action info) {
26 set_irn_dbg_info(nw, get_irn_dbg_info(old));
30 dbg_info_merge_sets(ir_node **new_nodes, int n_new_nodes,
31 ir_node **old_nodes, int n_old_nodes,
36 void (*__dbg_info_merge_pair)(ir_node *nw, ir_node *old, dbg_action info)
37 = &dbg_info_merge_pair;
39 void (*__dbg_info_merge_sets)(ir_node **new_nodes, int n_new_nodes,
40 ir_node **old_nodes, int n_old_nodes,
42 = &dbg_info_merge_sets;
45 void dbg_init( merge_pair_func *mpf, merge_sets_func *msf )
47 __dbg_info_merge_pair = mpf;
48 __dbg_info_merge_sets = msf;
53 set_irn_dbg_info(ir_node *n, struct dbg_info* db) {
58 get_irn_dbg_info(ir_node *n) {
63 /* Routines to access the field of an entity containing the
64 debugging information. */
65 void set_entity_dbg_info(entity *ent, dbg_info* db) {
68 dbg_info *get_entity_dbg_info(entity *ent) {
71 /* Routines to access the field of a type containing the
72 debugging information. */
73 void set_type_dbg_info(type *tp, dbg_info* db) {
76 dbg_info *get_type_dbg_info(type *tp) {