[compiler-rt] r173932 - tsan: fix CPP_WEAK definition (it must be the other way around)
Dmitry Vyukov
dvyukov at google.com
Wed Jan 30 06:38:44 PST 2013
Author: dvyukov
Date: Wed Jan 30 08:38:44 2013
New Revision: 173932
URL: http://llvm.org/viewvc/llvm-project?rev=173932&view=rev
Log:
tsan: fix CPP_WEAK definition (it must be the other way around)
Modified:
compiler-rt/trunk/lib/tsan/rtl/tsan_defs.h
Modified: compiler-rt/trunk/lib/tsan/rtl/tsan_defs.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/rtl/tsan_defs.h?rev=173932&r1=173931&r2=173932&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_defs.h (original)
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_defs.h Wed Jan 30 08:38:44 2013
@@ -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;
More information about the llvm-commits
mailing list