Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions src/dmd/compiler.d
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@ version (DMDLIB)

extern (C++) __gshared
{
/// Module in which the D main is
Module rootHasMain = null;

bool includeImports = false;
// array of module patterns used to include/exclude imported modules
Array!(const(char)*) includeModulePatterns;
Expand Down
3 changes: 0 additions & 3 deletions src/dmd/compiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ class Type;
struct Scope;
struct UnionExp;

// Module in which the D main is
extern Module *rootHasMain;

extern bool includeImports;
// array of module patterns used to include/exclude imported modules
extern Array<const char*> includeModulePatterns;
Expand Down
2 changes: 0 additions & 2 deletions src/dmd/dsymbolsem.d
Original file line number Diff line number Diff line change
Expand Up @@ -4211,8 +4211,6 @@ private extern(C++) final class DsymbolSemanticVisitor : Visitor
auto tm = new TemplateMixin(funcdecl.loc, null, tqual, null);
sc._module.members.push(tm);
}

rootHasMain = sc._module;
}

assert(funcdecl.type.ty != Terror || funcdecl.errors);
Expand Down
2 changes: 0 additions & 2 deletions src/dmd/frontend.h
Original file line number Diff line number Diff line change
Expand Up @@ -2041,8 +2041,6 @@ enum class TargetOS : uint8_t
Posix = 125u,
};

extern Module* rootHasMain;

extern bool includeImports;

extern Array<const char* > includeModulePatterns;
Expand Down