XML writer: address possible referenced type tracking issues

The function has_non_emitted_referenced_types has a fairly recent
copy/paste bug meaning function types are not considered.

The function write_referenced_types also ignores function types in its
"try again" processing loop.

Neither issue seems to have caused issues in practice. However, it
should be safer to always consider and emit these referenced types.

	* src/abg-writer.cc (has_non_emitted_referenced_types): Fix
	typo so that function types are also considered.
	(write_referenced_types): Also consider function types in "try
	again" processing loop.

Change-Id: I02af1e25b46a1a5b6653342120848fed893bd858
Signed-off-by: Giuliano Procida <gprocida@google.com>
1 file changed