diff options
| author | Alexey Samsonov <samsonov@google.com> | 2012-06-19 08:52:02 +0000 |
|---|---|---|
| committer | Alexey Samsonov <samsonov@google.com> | 2012-06-19 08:52:02 +0000 |
| commit | af70c09b8442727d533059381849c172a79e3a8b (patch) | |
| tree | c6de77c3cf9d8a4afd569c3f617f7b1acc72d1fa | |
| parent | b13ac747d4fe4fb6d1fe79ab854f0b1e51e780a8 (diff) | |
| download | bcm5719-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.h | 5 |
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 { |

