summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/tsan/rtl/tsan_defs.h
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2013-01-30 14:38:44 +0000
committerDmitry Vyukov <dvyukov@google.com>2013-01-30 14:38:44 +0000
commit087efd23d68b0ce408acc86c5433143410a2e74c (patch)
tree67f6eca80c11d9a67bb5bc50adc8c53bce8221ca /compiler-rt/lib/tsan/rtl/tsan_defs.h
parent28800da1b352a43175aaa8d224d7fe6895b014be (diff)
downloadbcm5719-llvm-087efd23d68b0ce408acc86c5433143410a2e74c.tar.gz
bcm5719-llvm-087efd23d68b0ce408acc86c5433143410a2e74c.zip
tsan: fix CPP_WEAK definition (it must be the other way around)
llvm-svn: 173932
Diffstat (limited to 'compiler-rt/lib/tsan/rtl/tsan_defs.h')
-rw-r--r--compiler-rt/lib/tsan/rtl/tsan_defs.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler-rt/lib/tsan/rtl/tsan_defs.h b/compiler-rt/lib/tsan/rtl/tsan_defs.h
index 125458afd11..b18a174d411 100644
--- a/compiler-rt/lib/tsan/rtl/tsan_defs.h
+++ b/compiler-rt/lib/tsan/rtl/tsan_defs.h
@@ -28,13 +28,13 @@ namespace __tsan {
const bool kGoMode = true;
const bool kCppMode = false;
const char *const kTsanOptionsEnv = "GORACE";
-#define CPP_WEAK WEAK
+// Go linker does not support weak symbols.
+#define CPP_WEAK
#else
const bool kGoMode = false;
const bool kCppMode = true;
const char *const kTsanOptionsEnv = "TSAN_OPTIONS";
-// Go linker does not support weak symbols.
-#define CPP_WEAK
+#define CPP_WEAK WEAK
#endif
const int kTidBits = 13;
OpenPOWER on IntegriCloud