Add comments to struct cgraph_thunk_info
authorPierre-Marie de Rodat <derodat@adacore.com>
Fri, 15 Sep 2017 16:20:21 +0000 (16:20 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Fri, 15 Sep 2017 16:20:21 +0000 (16:20 +0000)
commita3e61d61ba546adb2a13b7656e5cc13a1cb17060
tree5622929d75f96b1b8b73f3fb8003a4e7ac7b6f8e
parented17cb57b8ddfa4d0c48e0428d0b1df4384a90c5
Add comments to struct cgraph_thunk_info

This commit adds comments to fields in the cgraph_thunk_info structure
declaration from cgraph.h.  They will hopefully answer questions that
people like myself can ask while discovering the thunk machinery.  I
also made an assertion stricter in cgraph_node::create_thunk.

Bootsrapped and regtested on x86_64-linux.

gcc/

* cgraph.h (cgraph_thunk_info): Add comments.
* cgraph.c (cgraph_node::create_thunk): Adjust comment, make
assert for VIRTUAL_* arguments stricter.

From-SVN: r252828
gcc/ChangeLog
gcc/cgraph.c
gcc/cgraph.h