]> git.ipfire.org Git - thirdparty/gcc.git/commit
d: Reduce code duplication of writing generated files.
authorIain Buclaw <ibuclaw@gdcproject.org>
Sun, 1 Oct 2023 22:12:25 +0000 (00:12 +0200)
committerIain Buclaw <ibuclaw@gdcproject.org>
Sat, 14 Oct 2023 11:52:30 +0000 (13:52 +0200)
commit06d8aee3aaa7928321acc6f7752aa5dee9661bf3
tree3682efc24acd131ab8dbd1ffece619e722fb03f9
parentbc238c40df6c3aa5dc7629ba3ed9adba1c56f7a0
d: Reduce code duplication of writing generated files.

Small refactoring ahead of the next merge from upstream, where a few
more front-end routines will stop doing the file handling themselves.

gcc/d/ChangeLog:

* d-lang.cc (d_write_file): New function.
(d_parse_file): Reduce code duplication.
gcc/d/d-lang.cc