summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2012-06-19 08:52:02 +0000
committerAlexey Samsonov <samsonov@google.com>2012-06-19 08:52:02 +0000
commitaf70c09b8442727d533059381849c172a79e3a8b (patch)
treec6de77c3cf9d8a4afd569c3f617f7b1acc72d1fa
parentb13ac747d4fe4fb6d1fe79ab854f0b1e51e780a8 (diff)
downloadbcm5719-llvm-af70c09b8442727d533059381849c172a79e3a8b.tar.gz
bcm5719-llvm-af70c09b8442727d533059381849c172a79e3a8b.zip
[Sanitizer] State that sanitizer_libc.h header can be included in the user code (and therefore it shouldn't include other sanitizer runtime headers).
llvm-svn: 158707
-rw-r--r--compiler-rt/lib/sanitizer_common/sanitizer_libc.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_libc.h b/compiler-rt/lib/sanitizer_common/sanitizer_libc.h
index d4b6d605207..d6bddfc06c8 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_libc.h
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_libc.h
@@ -11,11 +11,14 @@
// run-time libraries.
// These tools can not use some of the libc functions directly because those
// functions are intercepted. Instead, we implement a tiny subset of libc here.
+// NOTE: This file may be included into user code.
//===----------------------------------------------------------------------===//
#ifndef SANITIZER_LIBC_H
#define SANITIZER_LIBC_H
-#include "sanitizer_internal_defs.h"
+// ----------- ATTENTION -------------
+// This header should NOT include any other headers from sanitizer runtime.
+#include "sanitizer_interface_defs.h"
namespace __sanitizer {
OpenPOWER on IntegriCloud