aboutsummaryrefslogtreecommitdiff
path: root/gcc/d/dmd/compiler.h
diff options
context:
space:
mode:
authorIain Buclaw <ibuclaw@gdcproject.org>2019-01-21 21:16:06 +0000
committerIain Buclaw <ibuclaw@gcc.gnu.org>2019-01-21 21:16:06 +0000
commit255b2d916ec794078cfd0c351d3e921f8701142a (patch)
tree3dee0722fb17b5496011bd698f924c31f5e56833 /gcc/d/dmd/compiler.h
parentd50114960965a85deb3ba6a19ac4f7640ed97e7e (diff)
downloadgcc-255b2d916ec794078cfd0c351d3e921f8701142a.zip
gcc-255b2d916ec794078cfd0c351d3e921f8701142a.tar.gz
gcc-255b2d916ec794078cfd0c351d3e921f8701142a.tar.bz2
Merge dmd upstream 180465274
Reduces the memory footprint of the CTFE interpreter by replacing new with emplacement new in many places. gcc/d/ChangeLog: 2019-01-21 Iain Buclaw <ibuclaw@gdcproject.org> * d-frontend.cc (Compiler::paintAsType): Update for new signature. From-SVN: r268124
Diffstat (limited to 'gcc/d/dmd/compiler.h')
-rw-r--r--gcc/d/dmd/compiler.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/d/dmd/compiler.h b/gcc/d/dmd/compiler.h
index e8ab992..a852078 100644
--- a/gcc/d/dmd/compiler.h
+++ b/gcc/d/dmd/compiler.h
@@ -19,6 +19,7 @@ class Expression;
class Module;
class Type;
struct Scope;
+struct UnionExp;
// DMD-generated module `__entrypoint` where the C main resides
extern Module *entrypoint;
@@ -28,7 +29,7 @@ extern Module *rootHasMain;
struct Compiler
{
// CTFE support for cross-compilation.
- static Expression *paintAsType(Expression *, Type *);
+ static Expression *paintAsType(UnionExp *, Expression *, Type *);
// Backend
static void loadModule(Module *);
static void genCmain(Scope *);