summaryrefslogtreecommitdiffstats
path: root/compiler-rt
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2012-06-19 08:57:53 +0000
committerAlexey Samsonov <samsonov@google.com>2012-06-19 08:57:53 +0000
commitb1c3991915a01a98a8e939a4ff28131e7098549e (patch)
tree6ceb677955f14cc3da470ac333aa97a8d8231b4e /compiler-rt
parentaf70c09b8442727d533059381849c172a79e3a8b (diff)
downloadbcm5719-llvm-b1c3991915a01a98a8e939a4ff28131e7098549e.tar.gz
bcm5719-llvm-b1c3991915a01a98a8e939a4ff28131e7098549e.zip
[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
llvm-svn: 158708
Diffstat (limited to 'compiler-rt')
-rw-r--r--compiler-rt/lib/tsan/rtl/tsan_flags.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/compiler-rt/lib/tsan/rtl/tsan_flags.h b/compiler-rt/lib/tsan/rtl/tsan_flags.h
index 6c516ed0b22..66d3cf85031 100644
--- a/compiler-rt/lib/tsan/rtl/tsan_flags.h
+++ b/compiler-rt/lib/tsan/rtl/tsan_flags.h
@@ -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 {
OpenPOWER on IntegriCloud