aboutsummaryrefslogtreecommitdiff
path: root/gcc/d/d-lang.cc
diff options
context:
space:
mode:
authorIain Buclaw <ibuclaw@gdcproject.org>2020-06-23 16:42:54 +0200
committerIain Buclaw <ibuclaw@gdcproject.org>2020-06-25 17:02:46 +0200
commitd103f336bdc3144e756c7634b8914830c867896d (patch)
treeaf8108e72597172e7029a39bd853598cdf2f490a /gcc/d/d-lang.cc
parent62e02c8729a75c4a859edc18e0bcafb87d717f46 (diff)
downloadgcc-d103f336bdc3144e756c7634b8914830c867896d.zip
gcc-d103f336bdc3144e756c7634b8914830c867896d.tar.gz
gcc-d103f336bdc3144e756c7634b8914830c867896d.tar.bz2
d: Merge upstream dmd 5fc1806cd.
Backports the OutBuffer interface from upstream dmd master, removing another difference this and the self-hosted D branch that is purely refactoring, and doesn't introduce any mechanical changes. Reviewed-on: https://github.com/dlang/dmd/pull/11302 gcc/d/ChangeLog: * dmd/MERGE: Merge upstream dmd 5fc1806cd. * d-lang.cc (d_parse_file): Use peekChars to get string representation of OutBuffer data.
Diffstat (limited to 'gcc/d/d-lang.cc')
-rw-r--r--gcc/d/d-lang.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/d/d-lang.cc b/gcc/d/d-lang.cc
index 24a1125..e4d0a24 100644
--- a/gcc/d/d-lang.cc
+++ b/gcc/d/d-lang.cc
@@ -1043,7 +1043,7 @@ d_parse_file (void)
buf.writestring (s);
}
- message ("%.*s", (int) buf.offset, (char *) buf.data);
+ message ("%s", buf.peekChars ());
}
}
@@ -1361,7 +1361,7 @@ d_parse_file (void)
buf.doindent = 1;
moduleToBuffer (&buf, m);
- message ("%.*s", (int) buf.offset, (char *) buf.data);
+ message ("%s", buf.peekChars ());
}
}