Skip to content

Commit a5e5a6d

Browse files
committed
Move Compiler to own module.
1 parent db75da8 commit a5e5a6d

2 files changed

Lines changed: 17 additions & 5 deletions

File tree

src/dmd/compiler.d

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/**
2+
* Compiler implementation of the
3+
* $(LINK2 http://www.dlang.org, D programming language).
4+
*
5+
* Copyright: Copyright (c) 1999-2017 by The D Language Foundation, All Rights Reserved
6+
* Authors: $(LINK2 http://www.digitalmars.com, Walter Bright)
7+
* License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0)
8+
* Source: $(LINK2 https://github.com/dlang/dmd/blob/master/src/dmd/compiler.d, _compiler.d)
9+
*/
10+
11+
module dmd.compiler;
12+
13+
struct Compiler
14+
{
15+
const(char)* vendor; // Compiler backend name
16+
}

src/dmd/globals.d

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import core.stdc.stdio;
1919
import dmd.root.array;
2020
import dmd.root.filename;
2121
import dmd.root.outbuffer;
22+
import dmd.compiler;
2223
import dmd.identifier;
2324

2425
template xversion(string s)
@@ -215,11 +216,6 @@ struct Param
215216
const(char)* mapfile;
216217
}
217218

218-
struct Compiler
219-
{
220-
const(char)* vendor; // Compiler backend name
221-
}
222-
223219
alias structalign_t = uint;
224220

225221
// magic value means "match whatever the underlying C compiler does"

0 commit comments

Comments
 (0)