d: Move d_signed_type and d_unsigned_type to types.cc
authorIain Buclaw <ibuclaw@gdcproject.org>
Fri, 19 Jun 2020 14:51:13 +0000 (16:51 +0200)
committerIain Buclaw <ibuclaw@gdcproject.org>
Thu, 25 Jun 2020 15:02:47 +0000 (17:02 +0200)
commitbbd6a326f4e630f017e4cd715f617587048d4501
treeebf31e52e752025d4c289e00a5bf1a59f982f797
parent1b7b352a8379dbdd74c962d11951982e21e20f13
d: Move d_signed_type and d_unsigned_type to types.cc

These two functions are not tied to the language-specific part of the
front-end in any way.

gcc/d/ChangeLog:

* d-lang.cc (d_gimplify_expr_p): Make static.
(d_parse_file): Likewise.
(d_signed_or_unsigned_type): Move to types.cc.
(d_unsigned_type): Likewise.
(d_signed_type): Likewise.
* d-tree.h (d_unsigned_type): Change the location in file.
(d_signed_type): Likewise.
* types.cc (d_signed_or_unsigned_type): Moved from d-lang.cc.
(d_unsigned_type): Likewise.
(d_signed_type): Likewise.
gcc/d/d-lang.cc
gcc/d/d-tree.h
gcc/d/types.cc