diff options
author | Iain Buclaw <ibuclaw@gdcproject.org> | 2020-06-07 11:26:32 +0200 |
---|---|---|
committer | Iain Buclaw <ibuclaw@gdcproject.org> | 2020-06-07 14:16:33 +0200 |
commit | d8930b138788258aaad77b8fe821ce44d08a66d1 (patch) | |
tree | 1093e7665bae9d6d13ece511fec69cbc16d14646 /gcc/d/dmd/expressionsem.c | |
parent | 557a40f599f64e40cc1b20254bf82acc775375f5 (diff) | |
download | gcc-d8930b138788258aaad77b8fe821ce44d08a66d1.zip gcc-d8930b138788258aaad77b8fe821ce44d08a66d1.tar.gz gcc-d8930b138788258aaad77b8fe821ce44d08a66d1.tar.bz2 |
d: Merge upstream dmd cef1e7991.
Adds a DString type, a struct that has a compatible layout with D
strings. Many parameters in the Global struct have been switched over
to this type, and users of these params have been adjust to use the
length or ptr field as appropriate.
gcc/d/ChangeLog:
* dmd/MERGE: Merge upstream dmd cef1e7991.
* d-lang.cc (d_parse_file): Adjust for new field types.
Diffstat (limited to 'gcc/d/dmd/expressionsem.c')
-rw-r--r-- | gcc/d/dmd/expressionsem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/d/dmd/expressionsem.c b/gcc/d/dmd/expressionsem.c index 75e4d13..4db9591 100644 --- a/gcc/d/dmd/expressionsem.c +++ b/gcc/d/dmd/expressionsem.c @@ -2373,13 +2373,13 @@ public: OutBuffer *ob = global.params.moduleDeps; Module* imod = sc->instantiatingModule(); - if (!global.params.moduleDepsFile) + if (!global.params.moduleDepsFile.length) ob->writestring("depsFile "); ob->writestring(imod->toPrettyChars()); ob->writestring(" ("); escapePath(ob, imod->srcfile->toChars()); ob->writestring(") : "); - if (global.params.moduleDepsFile) + if (global.params.moduleDepsFile.length) ob->writestring("string : "); ob->writestring((char *) se->string); ob->writestring(" ("); |