[PATCH] D37202: [XRay][compiler-rt] Return the pointer associated with the function instead of the sled

Dean Michael Berris via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 27 20:59:42 PDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL311871: [XRay][compiler-rt] Return the pointer associated with the function instead of… (authored by dberris).

Repository:
  rL LLVM

https://reviews.llvm.org/D37202

Files:
  compiler-rt/trunk/lib/xray/xray_interface.cc


Index: compiler-rt/trunk/lib/xray/xray_interface.cc
===================================================================
--- compiler-rt/trunk/lib/xray/xray_interface.cc
+++ compiler-rt/trunk/lib/xray/xray_interface.cc
@@ -331,7 +331,7 @@
   __sanitizer::SpinMutexLock Guard(&XRayInstrMapMutex);
   if (FuncId <= 0 || static_cast<size_t>(FuncId) > XRayInstrMap.Functions)
     return 0;
-  return XRayInstrMap.SledsIndex[FuncId - 1].Begin->Address
+  return XRayInstrMap.SledsIndex[FuncId - 1].Begin->Function
 // On PPC, function entries are always aligned to 16 bytes. The beginning of a
 // sled might be a local entry, which is always +8 based on the global entry.
 // Always return the global entry.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37202.112850.patch
Type: text/x-patch
Size: 704 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170828/a2ca4926/attachment.bin>


More information about the llvm-commits mailing list