2 * Copyright (C) 2001 by Universitaet Karlsruhe
5 * Authors: Goetz Lindenmaier
7 * dbginfo: This is a empty implementation of the Firm interface to
8 * debugging support. It only guarantees that the Firm library compiles
9 * and runs without any real debugging support.
10 * The functions herein are declared weak so that they can be overriden
11 * by a real implementation.
20 #include "dbginfo_t.h"
27 dbg_info_merge_pair(ir_node *nw, ir_node *old, dbg_action info) {
28 set_irn_dbg_info(nw, get_irn_dbg_info(old));
32 dbg_info_merge_sets(ir_node **new_nodes, int n_new_nodes,
33 ir_node **old_nodes, int n_old_nodes,
38 void (*__dbg_info_merge_pair)(ir_node *nw, ir_node *old, dbg_action info)
39 = &dbg_info_merge_pair;
41 void (*__dbg_info_merge_sets)(ir_node **new_nodes, int n_new_nodes,
42 ir_node **old_nodes, int n_old_nodes,
44 = &dbg_info_merge_sets;
47 void dbg_init( merge_pair_func *mpf, merge_sets_func *msf )
49 __dbg_info_merge_pair = mpf;
50 __dbg_info_merge_sets = msf;
55 set_irn_dbg_info(ir_node *n, struct dbg_info* db) {
59 INLINE struct dbg_info *
60 get_irn_dbg_info(ir_node *n) {
65 /* Routines to access the field of an entity containing the
66 debugging information. */
67 INLINE void set_entity_dbg_info(entity *ent, dbg_info* db) {
70 INLINE dbg_info *get_entity_dbg_info(entity *ent) {
73 /* Routines to access the field of a type containing the
74 debugging information. */
75 INLINE void set_type_dbg_info(type *tp, dbg_info* db) {
78 INLINE dbg_info *get_type_dbg_info(type *tp) {