libcp1plugin.cc (plugin_build_decl): Use DECL_CXX_{CON,DE}STRUCTOR directly.

* libcp1plugin.cc (plugin_build_decl): Use
	DECL_CXX_{CON,DE}STRUCTOR directly.

From-SVN: r250159
This commit is contained in:
Nathan Sidwell 2017-07-12 19:46:33 +00:00 committed by Nathan Sidwell
parent 3da3dcdb98
commit 75f8b37892
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2017-07-12 Nathan Sidwell <nathan@acm.org>
* libcp1plugin.cc (plugin_build_decl): Use
DECL_CXX_{CON,DE}STRUCTOR directly.
2017-07-05 Richard Sandiford <richard.sandiford@linaro.org>
* libcp1plugin.cc (plugin_build_field): Use SET_DECL_MODE.

View File

@ -1419,9 +1419,9 @@ plugin_build_decl (cc1_plugin::connection *self,
if (ctor || dtor)
{
if (ctor)
DECL_CONSTRUCTOR_P (decl) = 1;
DECL_CXX_CONSTRUCTOR_P (decl) = 1;
if (dtor)
DECL_DESTRUCTOR_P (decl) = 1;
DECL_CXX_DESTRUCTOR_P (decl) = 1;
}
else
{