summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2015-11-11 16:09:20 +0000
committerDmitry Vyukov <dvyukov@google.com>2015-11-11 16:09:20 +0000
commit3ed274e3ce95da57c1c1e41a625d0c406f80248c (patch)
tree5e49e2f1ade267d9a4a039e2e0d5ab7a567937f9 /compiler-rt/lib
parent1fe2d1e6d428cd34e51252a3d822ffa5eb5db5e4 (diff)
downloadbcm5719-llvm-3ed274e3ce95da57c1c1e41a625d0c406f80248c.tar.gz
bcm5719-llvm-3ed274e3ce95da57c1c1e41a625d0c406f80248c.zip
tsan: fix unused variable in Go build
llvm-svn: 252746
Diffstat (limited to 'compiler-rt/lib')
-rw-r--r--compiler-rt/lib/tsan/rtl/tsan_report.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/compiler-rt/lib/tsan/rtl/tsan_report.cc b/compiler-rt/lib/tsan/rtl/tsan_report.cc
index ad8fc9a2083..f54f04b732a 100644
--- a/compiler-rt/lib/tsan/rtl/tsan_report.cc
+++ b/compiler-rt/lib/tsan/rtl/tsan_report.cc
@@ -19,12 +19,6 @@
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() {
@@ -117,6 +111,12 @@ static const char *ReportTypeString(ReportType typ) {
return "";
}
+#if SANITIZER_MAC
+static const char *const kInterposedFunctionPrefix = "wrap_";
+#else
+static const char *const kInterposedFunctionPrefix = "__interceptor_";
+#endif
+
void PrintStack(const ReportStack *ent) {
if (ent == 0 || ent->frames == 0) {
Printf(" [failed to restore the stack]\n\n");
OpenPOWER on IntegriCloud