This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH: PR /3187] C++ space optimization: declone delete destructor


On 09/11/2009 09:38 PM, Carrot Wei wrote:
Do you mean I should do as following:

     if (DECL_NAME (clone) == deleting_dtor_identifier)
       build_delete_destructor_body (clone, complete_dtor);
     else
       {
         decl_map = pointer_map_create ();

... /* Construct decl_map. */

clone_body (clone, fn, decl_map);

         pointer_map_destroy (decl_map);
       }

Yes.


Jason


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]