1 //===-- dfsan.h -------------------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file is a part of DataFlowSanitizer.
12 // Private DFSan header.
13 //===----------------------------------------------------------------------===//
18 #include "sanitizer/dfsan_interface.h"
22 void InitializeInterceptors();
24 inline dfsan_label
*shadow_for(void *ptr
) {
25 return (dfsan_label
*) ((((uintptr_t) ptr
) & ~0x700000000000) << 1);
28 inline const dfsan_label
*shadow_for(const void *ptr
) {
29 return shadow_for(const_cast<void *>(ptr
));
33 // Whether to warn on unimplemented functions.
34 bool warn_unimplemented
;
35 // Whether to warn on non-zero labels.
36 bool warn_nonzero_labels
;
39 extern Flags flags_data
;
40 inline Flags
&flags() {
44 } // namespace __dfsan