Alexey Samsonov | bc3a7e3 | 2012-06-06 06:47:26 +0000 | [diff] [blame^] | 1 | //===-- sanitizer_common.h --------------------------------------*- C++ -*-===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
| 10 | // This file is shared between AddressSanitizer and ThreadSanitizer |
| 11 | // run-time libraries. |
| 12 | // It defines common functions and classes that are used in both runtimes. |
| 13 | // Implementation of some functions are provided in sanitizer_common, while |
| 14 | // others must be defined by run-time library itself. |
| 15 | //===----------------------------------------------------------------------===// |
| 16 | #ifndef SANITIZER_COMMON_H |
| 17 | #define SANITIZER_COMMON_H |
| 18 | |
| 19 | #include "sanitizer_internal_defs.h" |
| 20 | |
| 21 | namespace __sanitizer { |
| 22 | |
| 23 | // NOTE: Functions below must be defined in each run-time. |
| 24 | void NORETURN Die(); |
| 25 | |
| 26 | } // namespace __sanitizer |
| 27 | |
| 28 | #endif // SANITIZER_COMMON_H |