summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib
diff options
context:
space:
mode:
authorDean Michael Berris <dberris@google.com>2017-06-19 01:30:04 +0000
committerDean Michael Berris <dberris@google.com>2017-06-19 01:30:04 +0000
commit043d3f868291d158f7e24a8a2d9f3ed629aa737b (patch)
treea1ead95fb1d3615e7780a66f731755c153500f15 /compiler-rt/lib
parent36b08b2088417e0ebd9dbfc6bd07956022650169 (diff)
downloadbcm5719-llvm-043d3f868291d158f7e24a8a2d9f3ed629aa737b.tar.gz
bcm5719-llvm-043d3f868291d158f7e24a8a2d9f3ed629aa737b.zip
[XRay][compiler-rt][NFC] Add a name for argument to __xray_set_handler_arg1(...)
Just makes the interface consistent with the other functions in include/xray/xray_interface.h. llvm-svn: 305658
Diffstat (limited to 'compiler-rt/lib')
-rw-r--r--compiler-rt/lib/xray/xray_interface.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/lib/xray/xray_interface.cc b/compiler-rt/lib/xray/xray_interface.cc
index e912b6e478a..694d34c0102 100644
--- a/compiler-rt/lib/xray/xray_interface.cc
+++ b/compiler-rt/lib/xray/xray_interface.cc
@@ -312,7 +312,7 @@ __xray_unpatch_function(int32_t FuncId) XRAY_NEVER_INSTRUMENT {
return patchFunction(FuncId, false);
}
-int __xray_set_handler_arg1(void (*Handler)(int32_t, XRayEntryType, uint64_t)) {
+int __xray_set_handler_arg1(void (*entry)(int32_t, XRayEntryType, uint64_t)) {
if (!__sanitizer::atomic_load(&XRayInitialized,
__sanitizer::memory_order_acquire))
return 0;
@@ -320,7 +320,7 @@ int __xray_set_handler_arg1(void (*Handler)(int32_t, XRayEntryType, uint64_t)) {
// A relaxed write might not be visible even if the current thread gets
// scheduled on a different CPU/NUMA node. We need to wait for everyone to
// have this handler installed for consistency of collected data across CPUs.
- __sanitizer::atomic_store(&XRayArgLogger, reinterpret_cast<uint64_t>(Handler),
+ __sanitizer::atomic_store(&XRayArgLogger, reinterpret_cast<uint64_t>(entry),
__sanitizer::memory_order_release);
return 1;
}
OpenPOWER on IntegriCloud