[llvm-commits] [compiler-rt] r158708 - /compiler-rt/trunk/lib/tsan/rtl/tsan_flags.h
Alexey Samsonov
samsonov at google.com
Tue Jun 19 01:57:53 PDT 2012
Author: samsonov
Date: Tue Jun 19 03:57:53 2012
New Revision: 158708
URL: http://llvm.org/viewvc/llvm-project?rev=158708&view=rev
Log:
[TSan] Add a comment that tsan_flags.h may be included in the user code, and therefore shouldn't include other headers from TSan or common sanitizer runtime. User may need tsan_flags.h to provide its implementation of __tsan::OverrideFlags
Modified:
compiler-rt/trunk/lib/tsan/rtl/tsan_flags.h
Modified: compiler-rt/trunk/lib/tsan/rtl/tsan_flags.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/rtl/tsan_flags.h?rev=158708&r1=158707&r2=158708&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_flags.h (original)
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_flags.h Tue Jun 19 03:57:53 2012
@@ -8,12 +8,18 @@
//===----------------------------------------------------------------------===//
//
// This file is a part of ThreadSanitizer (TSan), a race detector.
-//
+// NOTE: This file may be included into user code.
//===----------------------------------------------------------------------===//
#ifndef TSAN_FLAGS_H
#define TSAN_FLAGS_H
+// ----------- ATTENTION -------------
+// ThreadSanitizer user may provide its implementation of weak
+// symbol __tsan::OverrideFlags(__tsan::Flags). Therefore, this
+// header may be included in the user code, and shouldn't include
+// other headers from TSan or common sanitizer runtime.
+
namespace __tsan {
struct Flags {
More information about the llvm-commits
mailing list