summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
diff options
context:
space:
mode:
authorSean Silva <chisophugis@gmail.com>2016-02-27 06:01:26 +0000
committerSean Silva <chisophugis@gmail.com>2016-02-27 06:01:26 +0000
commitea399f0242fd511c22427c69bcb5d142596fe7c0 (patch)
tree306e4e226d984e6fd67067da9a8df77ddf6f35f9 /llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
parent9056284912b87733ae8722334fa648266b0a8d9b (diff)
downloadbcm5719-llvm-ea399f0242fd511c22427c69bcb5d142596fe7c0.tar.gz
bcm5719-llvm-ea399f0242fd511c22427c69bcb5d142596fe7c0.zip
[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
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp')
-rw-r--r--llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp b/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
index ab888189987..6e12effe9c2 100644
--- a/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
+++ b/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
@@ -406,7 +406,8 @@ void InstrProfiling::emitRegistration() {
// Use linker script magic to get data/cnts/name start/end.
if (Triple(M->getTargetTriple()).isOSLinux() ||
- Triple(M->getTargetTriple()).isOSFreeBSD())
+ Triple(M->getTargetTriple()).isOSFreeBSD() ||
+ Triple(M->getTargetTriple()).isPS4CPU())
return;
// Construct the function.
OpenPOWER on IntegriCloud