D109576 broke code size metric collection on Darwin platforms.
This patch restores support in Darwin.
The reason support was broken is that llvm-size outputs text section size with leading underscores, while on other platforms, it leads with periods.
In light of the comment below, this could become:
or, better yet