summaryrefslogtreecommitdiff
path: root/test/xray
diff options
context:
space:
mode:
authorTim Shen <timshen91@gmail.com>2017-05-17 21:20:00 +0000
committerTim Shen <timshen91@gmail.com>2017-05-17 21:20:00 +0000
commite1cd1705926eb39307a7239bf0531c55940a3639 (patch)
treeb02b5c3860a71793cc86d672cbc4456d48cf31b2 /test/xray
parent3cd2b8fb91fd44fcd076ad4fe747922710c0f74e (diff)
[XRay] Fix __xray_function_address on PPC reguarding local entry points.
Reviewers: echristo, dberris Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D33266 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@303302 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/xray')
-rw-r--r--test/xray/TestCases/Linux/func-id-utils.cc16
1 files changed, 4 insertions, 12 deletions
diff --git a/test/xray/TestCases/Linux/func-id-utils.cc b/test/xray/TestCases/Linux/func-id-utils.cc
index c9a2952c6..17185c34c 100644
--- a/test/xray/TestCases/Linux/func-id-utils.cc
+++ b/test/xray/TestCases/Linux/func-id-utils.cc
@@ -31,18 +31,10 @@
"each function id must be assigned to a unique function");
std::set<void *> not_instrumented;
- const auto comp = [](void *lhs, void *rhs) {
-#ifdef __PPC__
- return reinterpret_cast<uintptr_t>(lhs) + 8 <
- reinterpret_cast<uintptr_t>(rhs);
-#else
- return lhs < rhs;
-#endif
- };
- std::set_difference(must_be_instrumented.begin(), must_be_instrumented.end(),
- all_instrumented.begin(), all_instrumented.end(),
- std::inserter(not_instrumented, not_instrumented.begin()),
- comp);
+ std::set_difference(
+ must_be_instrumented.begin(), must_be_instrumented.end(),
+ all_instrumented.begin(), all_instrumented.end(),
+ std::inserter(not_instrumented, not_instrumented.begin()));
assert(
not_instrumented.empty() &&
"we should see all explicitly instrumented functions with function ids");