mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-02 08:01:11 +03:00
27 lines
696 B
D
27 lines
696 B
D
//===-- gen/semantic.d - Additional LDC semantic analysis ---------*- D -*-===//
|
||
//
|
||
// LDC – the LLVM D compiler
|
||
//
|
||
// This file is distributed under the BSD-style LDC license. See the LICENSE
|
||
// file for details.
|
||
//
|
||
//===----------------------------------------------------------------------===//
|
||
|
||
module gen.semantic;
|
||
|
||
import dmd.arraytypes;
|
||
import dmd.dsymbol;
|
||
import dmd.dmodule;
|
||
|
||
extern(C++) void dcomputeSemanticAnalysis(Module m);
|
||
extern(C) int hasComputeAttr(Dsymbol m);
|
||
|
||
extern(C++) void extraLDCSpecificSemanticAnalysis(ref Modules modules)
|
||
{
|
||
foreach(m; modules[])
|
||
{
|
||
if (hasComputeAttr(m))
|
||
dcomputeSemanticAnalysis(m);
|
||
}
|
||
|
||
}
|