aboutsummaryrefslogtreecommitdiff
path: root/gcc/d
diff options
context:
space:
mode:
authorIain Buclaw <ibuclaw@gcc.gnu.org>2019-04-12 06:24:53 +0000
committerIain Buclaw <ibuclaw@gcc.gnu.org>2019-04-12 06:24:53 +0000
commit77f4fb57664b93b49257699ddb48182f6dc6a60a (patch)
tree15835888dfca9cdb57b4c762aae266196e15d0c7 /gcc/d
parentf75c823e89574729048329ab5ef597e66149563d (diff)
downloadgcc-77f4fb57664b93b49257699ddb48182f6dc6a60a.zip
gcc-77f4fb57664b93b49257699ddb48182f6dc6a60a.tar.gz
gcc-77f4fb57664b93b49257699ddb48182f6dc6a60a.tar.bz2
d/dmd: Merge upstream dmd c185f9df1
Adds new virtual isVersionCondition, this is so that in the code generation pass, a ConditionDeclaration's condition can be identified without requiring a Visitor function. Reviewed-on: https://github.com/dlang/dmd/pull/9591 From-SVN: r270300
Diffstat (limited to 'gcc/d')
-rw-r--r--gcc/d/dmd/MERGE2
-rw-r--r--gcc/d/dmd/cond.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/gcc/d/dmd/MERGE b/gcc/d/dmd/MERGE
index 800be95..be0c5a5 100644
--- a/gcc/d/dmd/MERGE
+++ b/gcc/d/dmd/MERGE
@@ -1,4 +1,4 @@
-d7ed327edb0b01ad56e7e73e77b3401cd565675e
+c185f9df1789456c7d88d047f2df23dd784f1182
The first line of this file holds the git revision number of the last
merge done from the dlang/dmd repository.
diff --git a/gcc/d/dmd/cond.h b/gcc/d/dmd/cond.h
index 891969b..8e33b16 100644
--- a/gcc/d/dmd/cond.h
+++ b/gcc/d/dmd/cond.h
@@ -39,6 +39,7 @@ public:
virtual Condition *syntaxCopy() = 0;
virtual int include(Scope *sc, ScopeDsymbol *sds) = 0;
virtual DebugCondition *isDebugCondition() { return NULL; }
+ virtual VersionCondition *isVersionCondition() { return NULL; }
virtual void accept(Visitor *v) { v->visit(this); }
};
@@ -91,6 +92,7 @@ public:
VersionCondition(Module *mod, unsigned level, Identifier *ident);
int include(Scope *sc, ScopeDsymbol *sds);
+ VersionCondition *isVersionCondition() { return this; }
void accept(Visitor *v) { v->visit(this); }
};