[webkit-reviews] review granted: [Bug 186944] Adjust WEBCORE_EXPORT annotations for LTO : [Attachment 343380] Patch

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jun 25 13:18:35 PDT 2018

David Kilzer (:ddkilzer) <ddkilzer at webkit.org> has granted Keith Rollin
<krollin at apple.com>'s request for review:
Bug 186944: Adjust WEBCORE_EXPORT annotations for LTO

Attachment 343380: Patch


--- Comment #5 from David Kilzer (:ddkilzer) <ddkilzer at webkit.org> ---
Comment on attachment 343380
  --> https://bugs.webkit.org/attachment.cgi?id=343380

View in context: https://bugs.webkit.org/attachment.cgi?id=343380&action=review


> Source/WebCore/ChangeLog:29
> +	   For the most part, address these by removing the WEBCORE_EXPORT
> +	   annotation from inline methods. In some cases, move the
> +	   out-of-line because it's the class that has the WEBCORE_EXPORT on it
> +	   and removing the annotation from the class would be too disruptive.
> +	   Finally, in other cases, move the implementation out-of-line because
> +	   check-for-weak-vtables-and-externals still complains when keeping
> +	   implementation inline and removing the annotation; this seems to
> +	   typically (but not always) happen with destructors.

Moving destructors out-of-line can save disk space in the binary as well!

> Source/WebCore/workers/service/server/SWServer.h:72
> -	   WEBCORE_EXPORT virtual ~Connection() { }
> +	   virtual ~Connection() { }

This can be changed to:

	virtual ~Connection() = default;

More information about the webkit-reviews mailing list