]>
Commit | Line | Data |
---|---|---|
9ee634e3 JH |
1 | /* Hooks for cfg representation specific functions. |
2 | Copyright (C) 2003 Free Software Foundation, Inc. | |
3 | Contributed by Sebastian Pop <s.pop@laposte.net> | |
4 | ||
5 | This file is part of GCC. | |
6 | ||
7 | GCC is free software; you can redistribute it and/or modify | |
8 | it under the terms of the GNU General Public License as published by | |
9 | the Free Software Foundation; either version 2, or (at your option) | |
10 | any later version. | |
11 | ||
12 | GCC is distributed in the hope that it will be useful, | |
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | GNU General Public License for more details. | |
16 | ||
17 | You should have received a copy of the GNU General Public License | |
18 | along with GCC; see the file COPYING. If not, write to | |
19 | the Free Software Foundation, 59 Temple Place - Suite 330, | |
20 | Boston, MA 02111-1307, USA. */ | |
21 | ||
22 | #include "config.h" | |
23 | #include "system.h" | |
24 | #include "coretypes.h" | |
25 | #include "tm.h" | |
26 | #include "tree.h" | |
27 | #include "rtl.h" | |
28 | #include "basic-block.h" | |
29 | ||
30 | extern struct cfg_hooks rtl_cfg_hooks; | |
31 | extern struct cfg_hooks cfg_layout_rtl_cfg_hooks; | |
32 | ||
33 | /* A pointer to one of the hooks containers. */ | |
34 | struct cfg_hooks *cfg_hooks; | |
35 | ||
36 | /* Initialization of functions specific to the rtl IR. */ | |
37 | void | |
38 | rtl_register_cfg_hooks () | |
39 | { | |
40 | cfg_hooks = &rtl_cfg_hooks; | |
41 | } | |
42 | ||
43 | /* Initialization of functions specific to the rtl IR. */ | |
44 | void | |
45 | cfg_layout_rtl_register_cfg_hooks () | |
46 | { | |
47 | cfg_hooks = &cfg_layout_rtl_cfg_hooks; | |
48 | } |