[instrprof] Use __{start,stop}_SECNAME on PS4 too.
authorSean Silva <chisophugis@gmail.com>
Sat, 27 Feb 2016 06:01:26 +0000 (06:01 +0000)
committerSean Silva <chisophugis@gmail.com>
Sat, 27 Feb 2016 06:01:26 +0000 (06:01 +0000)
commitea399f0242fd511c22427c69bcb5d142596fe7c0
tree306e4e226d984e6fd67067da9a8df77ddf6f35f9
parent9056284912b87733ae8722334fa648266b0a8d9b
[instrprof] Use __{start,stop}_SECNAME on PS4 too.

Summary:
The PS4 linker seems to handle this fine.

Hi David, it seems that indeed most ELF linkers support
__{start,stop}_SECNAME, as our proprietary linker does as well.

This follows the pattern of r250679 w.r.t. the testing.

Maggie, Phillip, Paul: I've tested this with the PS4 SDK 3.5 toolchain
prerelease and it seems to work fine.

Reviewers: davidxl

Subscribers: probinson, phillip.power, MaggieYi

Differential Revision: http://reviews.llvm.org/D17672

llvm-svn: 262112
llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
llvm/test/Instrumentation/InstrProfiling/platform.ll