glue code does not need to be C++ (#15850)

This commit is contained in:
Walter Bright 2023-11-21 22:36:28 -08:00 committed by GitHub
parent b59bc93e2d
commit 4a7d803384
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 0 additions and 12 deletions

View file

@ -74,8 +74,6 @@ import dmd.backend.symtab;
import dmd.backend.ty; import dmd.backend.ty;
import dmd.backend.type; import dmd.backend.type;
extern (C++):
alias Elems = Array!(elem *); alias Elems = Array!(elem *);
import dmd.backend.util2 : mem_malloc2; import dmd.backend.util2 : mem_malloc2;

View file

@ -195,8 +195,6 @@ public void generateCodeAndWrite(Module[] modules, const(char)*[] libmodules,
} }
} }
extern (C++):
//extern //extern
public __gshared Symbol* bzeroSymbol; /// common location for immutable zeros public __gshared Symbol* bzeroSymbol; /// common location for immutable zeros

View file

@ -67,8 +67,6 @@ import dmd.backend.symtab;
import dmd.backend.ty; import dmd.backend.ty;
import dmd.backend.type; import dmd.backend.type;
extern (C++):
alias StmtState = dmd.stmtstate.StmtState!block; alias StmtState = dmd.stmtstate.StmtState!block;

View file

@ -59,8 +59,6 @@ import dmd.backend.cgcv;
import dmd.backend.symtab; import dmd.backend.symtab;
import dmd.backend.ty; import dmd.backend.ty;
extern (C++):
/************************************* /*************************************
* Helper * Helper

View file

@ -155,8 +155,6 @@ struct IRState
} }
} }
extern (C++):
/********************************************* /*********************************************
* Produce elem which increments the usage count for a particular line. * Produce elem which increments the usage count for a particular line.
* Sets corresponding bit in bitmap `m.covb[linnum]`. * Sets corresponding bit in bitmap `m.covb[linnum]`.

View file

@ -75,8 +75,6 @@ import dmd.backend.oper;
import dmd.backend.ty; import dmd.backend.ty;
import dmd.backend.type; import dmd.backend.type;
extern (C++):
/* ================================================================== */ /* ================================================================== */
// Put out instance of ModuleInfo for this Module // Put out instance of ModuleInfo for this Module