diff options
author | Iain Buclaw <ibuclaw@gcc.gnu.org> | 2019-06-16 07:49:54 +0000 |
---|---|---|
committer | Iain Buclaw <ibuclaw@gcc.gnu.org> | 2019-06-16 07:49:54 +0000 |
commit | 9bf706aae20a891885780c9d419addd5d0bc510d (patch) | |
tree | 91d75ed1137990fbe4764a7ef415759e4f18dccd /gcc/d/dmd/declaration.c | |
parent | af1b88ee7b46234bd68593cfdf7ef3546024c635 (diff) | |
download | gcc-9bf706aae20a891885780c9d419addd5d0bc510d.zip gcc-9bf706aae20a891885780c9d419addd5d0bc510d.tar.gz gcc-9bf706aae20a891885780c9d419addd5d0bc510d.tar.bz2 |
d/dmd: Merge upstream dmd 974650488
Adds static function VarDeclaration::create to the dmd C++ interface.
Reviewed-on: https://github.com/dlang/dmd/pull/10008
From-SVN: r272349
Diffstat (limited to 'gcc/d/dmd/declaration.c')
-rw-r--r-- | gcc/d/dmd/declaration.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/d/dmd/declaration.c b/gcc/d/dmd/declaration.c index d0911e2..2a05430 100644 --- a/gcc/d/dmd/declaration.c +++ b/gcc/d/dmd/declaration.c @@ -830,6 +830,11 @@ VarDeclaration::VarDeclaration(Loc loc, Type *type, Identifier *id, Initializer this->sequenceNumber = ++nextSequenceNumber; } +VarDeclaration *VarDeclaration::create(Loc loc, Type *type, Identifier *id, Initializer *init) +{ + return new VarDeclaration(loc, type, id, init); +} + Dsymbol *VarDeclaration::syntaxCopy(Dsymbol *s) { //printf("VarDeclaration::syntaxCopy(%s)\n", toChars()); |