]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/d/dmd/compiler.h
cfcc317ff9c17ee8540c9865ea5d71f24fea187e
[thirdparty/gcc.git] / gcc / d / dmd / compiler.h
1
2 /* Compiler implementation of the D programming language
3 * Copyright (C) 1999-2018 by The D Language Foundation, All Rights Reserved
4 * written by Walter Bright
5 * http://www.digitalmars.com
6 * Distributed under the Boost Software License, Version 1.0.
7 * http://www.boost.org/LICENSE_1_0.txt
8 * https://github.com/dlang/dmd/blob/master/src/dmd/compiler.h
9 */
10
11 #pragma once
12
13 // This file contains a data structure that describes a back-end compiler
14 // and implements compiler-specific actions.
15
16 class Expression;
17 class Module;
18 class Type;
19 struct Scope;
20
21 struct Compiler
22 {
23 // CTFE support for cross-compilation.
24 static Expression *paintAsType(Expression *, Type *);
25 // Backend
26 static void loadModule(Module *);
27 static void genCmain(Scope *);
28 static bool onImport(Module *);
29 };