1 /* GDC -- D front-end for GCC
2 Copyright (C) 2004 David Friedman
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 /* This file contains declarations used by the modified DMD front-end to
20 interact with GCC-specific code. */
22 #ifndef GCC_DCMPLR_DMD_GCC_H
23 #define GCC_DCMPLR_DMD_GCC_H
27 /* used in module.c */
29 extern void d_gcc_magic_module(Module
*m
);
30 extern void d_gcc_dump_source(const char * filename
, const char * ext
, unsigned char * data
, unsigned len
);
34 extern Type
* d_gcc_builtin_va_list_d_type
;
37 extern bool d_gcc_is_target_win32();
40 struct VarDeclaration
;
42 struct ClassDeclaration
;
43 extern void d_gcc_emit_local_variable(VarDeclaration
*);
44 extern bool d_gcc_supports_weak();
51 extern Symbol
* rtlsym
[N_RTLSYM
];
54 /* used in template.c */
55 extern bool d_gcc_force_templates();
56 extern Module
* d_gcc_get_output_module();