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"
24 dbg_info_merge_pair(ir_node *nw, ir_node *old, dbg_action info) {
25 set_irn_dbg_info(nw, get_irn_dbg_info(old));
29 dbg_info_merge_sets(ir_node **new_nodes, int n_new_nodes,
30 ir_node **old_nodes, int n_old_nodes,
35 void (*__dbg_info_merge_pair)(ir_node *nw, ir_node *old, dbg_action info)
36 = &dbg_info_merge_pair;
38 void (*__dbg_info_merge_sets)(ir_node **new_nodes, int n_new_nodes,
39 ir_node **old_nodes, int n_old_nodes,
41 = &dbg_info_merge_sets;
44 void dbg_init( merge_pair_func *mpf, merge_sets_func *msf )
46 __dbg_info_merge_pair = mpf;
47 __dbg_info_merge_sets = msf;
52 set_irn_dbg_info(ir_node *n, struct dbg_info* db) {
57 get_irn_dbg_info(ir_node *n) {
62 /* Routines to access the field of an entity containing the
63 debugging information. */
64 void set_entity_dbg_info(entity *ent, dbg_info* db) {
67 dbg_info *get_entity_dbg_info(entity *ent) {
70 /* Routines to access the field of a type containing the
71 debugging information. */
72 void set_type_dbg_info(type *tp, dbg_info* db) {
75 dbg_info *get_type_dbg_info(type *tp) {