Use unique_ptr to handle ownership of GCOVFunctions in GCOVProfiler.