2 * Copyright (C) 1995-2007 University of Karlsruhe. All right reserved.
4 * This file is part of libFirm.
6 * This file may be distributed and/or modified under the terms of the
7 * GNU General Public License version 2 as published by the Free Software
8 * Foundation and appearing in the file LICENSE.GPL included in the
9 * packaging of this file.
11 * Licensees holding valid libFirm Professional Edition licenses may use
12 * this file in accordance with the libFirm Commercial License.
13 * Agreement provided with the Software.
15 * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
16 * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
21 * Header for ia32 assembler declarations dumper.
22 * @author Christian Wuerdig, Matthias Braun
25 #ifndef _BE_GEN_DECLS_H_
26 #define _BE_GEN_DECLS_H_
29 #include "beemitter.h"
34 typedef enum section_t {
35 GAS_SECTION_TEXT = 0, /**< text section */
36 GAS_SECTION_DATA = 1, /**< data section */
37 GAS_SECTION_RODATA = 2, /**< rodata section */
38 GAS_SECTION_COMMON = 3, /**< common section */
39 GAS_SECTION_TLS = 4, /**< thread local storage section */
40 GAS_SECTION_CTOR = 5, /**< ctor section for instrumentation code init */
44 typedef enum asm_flavour_t {
45 GAS_FLAVOUR_NORMAL = 0, /**< normal gas */
46 GAS_FLAVOUR_MINGW = 1, /**< MinGW variant */
50 extern be_gas_flavour_t be_gas_flavour;
54 * Generate all entities.
56 void be_gas_emit_decls(be_emit_env_t *env, const be_main_env_t *main_env,
57 int only_emit_marked_entities);
59 void be_gas_emit_switch_section(be_emit_env_t *env, be_gas_section_t section);