[PATCH] D14512: [tsan] Pass correct interposed function prefix to report function
Ismail Pazarbasi via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 10 18:41:19 PST 2015
This revision was automatically updated to reflect the committed changes.
Closed by commit rL252695: [tsan] Pass correct interposed function prefix to report function (authored by ismailp).
Changed prior to commit:
http://reviews.llvm.org/D14512?vs=39743&id=39880#toc
Repository:
rL LLVM
http://reviews.llvm.org/D14512
Files:
compiler-rt/trunk/lib/tsan/rtl/tsan_report.cc
Index: compiler-rt/trunk/lib/tsan/rtl/tsan_report.cc
===================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_report.cc
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_report.cc
@@ -19,6 +19,12 @@
namespace __tsan {
+#if SANITIZER_MAC
+static const char *const kInterposedFunctionPrefix = "wrap_";
+#else
+static const char *const kInterposedFunctionPrefix = "__interceptor_";
+#endif
+
ReportStack::ReportStack() : frames(nullptr), suppressable(false) {}
ReportStack *ReportStack::New() {
@@ -121,7 +127,7 @@
InternalScopedString res(2 * GetPageSizeCached());
RenderFrame(&res, common_flags()->stack_trace_format, i, frame->info,
common_flags()->symbolize_vs_style,
- common_flags()->strip_path_prefix, "__interceptor_");
+ common_flags()->strip_path_prefix, kInterposedFunctionPrefix);
Printf("%s\n", res.data());
}
Printf("\n");
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14512.39880.patch
Type: text/x-patch
Size: 952 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151111/00dfd4bb/attachment.bin>
More information about the llvm-commits
mailing list