Alexey Samsonov | 6eb53d6 | 2014-07-25 22:24:34 +0000 | [diff] [blame^] | 1 | //===-- ubsan_init.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 | // Initialization function for UBSan runtime. |
| 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | #ifndef UBSAN_INIT_H |
| 14 | #define UBSAN_INIT_H |
| 15 | |
| 16 | namespace __ubsan { |
| 17 | |
| 18 | // NOTE: This function might take a lock (if .preinit_array initialization is |
| 19 | // not used). It's generally a bad idea to call it on a fast path. |
| 20 | void InitIfNecessary(); |
| 21 | |
| 22 | } // namespace __ubsan |
| 23 | |
| 24 | #endif // UBSAN_INIT_H |