00001 /* 00002 * Copyright 2003, 2004, 2005, 2006 PathScale, Inc. All Rights Reserved. 00003 */ 00004 00005 /* 00006 00007 Copyright (C) 2000, 2001 Silicon Graphics, Inc. All Rights Reserved. 00008 00009 This program is free software; you can redistribute it and/or modify it 00010 under the terms of version 2 of the GNU General Public License as 00011 published by the Free Software Foundation. 00012 00013 This program is distributed in the hope that it would be useful, but 00014 WITHOUT ANY WARRANTY; without even the implied warranty of 00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00016 00017 Further, this software is distributed without any warranty that it is 00018 free of the rightful claim of any third person regarding infringement 00019 or the like. Any license provided herein, whether implied or 00020 otherwise, applies only to this software file. Patent licenses, if 00021 any, provided herein do not apply to combinations of this program with 00022 other software, or any other product whatsoever. 00023 00024 You should have received a copy of the GNU General Public License along 00025 with this program; if not, write the Free Software Foundation, Inc., 59 00026 Temple Place - Suite 330, Boston MA 02111-1307, USA. 00027 00028 Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pky, 00029 Mountain View, CA 94043, or: 00030 00031 http://www.sgi.com 00032 00033 For further information regarding this notice, see: 00034 00035 http://oss.sgi.com/projects/GenInfo/NoticeExplan 00036 00037 */ 00038 00039 00040 /* -*-Mode: c++;-*- (Tell emacs to use c++ mode) */ 00041 #ifndef ipc_bread_INCLUDED 00042 #define ipc_bread_INCLUDED 00043 00044 /* 00045 * The following routines are responsible for reading the binary WHIRL 00046 * files into memory. Typically IP_READ_file_info is used to read in 00047 * all the global tables, and then IP_READ_pu is used to read each PU. 00048 * IP_READ_str_table is also available if only the global string table 00049 * is needed. These routines can be called in any order -- they 00050 * automatically read in any prerequisites. Note that they can also 00051 * be called multiple times; if the information has already been read, 00052 * they will just set the global pointers (e.g. Global_Symtab) to the 00053 * appropriate data structures. 00054 */ 00055 00056 00057 // Read the tree of pu_infos, and then set up the array of 00058 // IP_PROC_INFOs. The array contains essentially the same information 00059 // as the tree; the main difference is the different data structure. 00060 extern void IP_READ_pu_infos (IP_FILE_HDR& s); 00061 00062 extern void IP_READ_file_info (IP_FILE_HDR& s); 00063 00064 class IPA_NODE; 00065 00066 extern void IP_READ_pu (IPA_NODE* node, IP_FILE_HDR& s, INT p_index, 00067 MEM_POOL *pool); 00068 00069 #endif /* // ipc_bread_INCLUDED */
1.5.6