blob: 18356cfca6177f32690e4f7e33596bf8e8904fe3 [file] [log] [blame]
Alexey Samsonov6eb53d62014-07-25 22:24:34 +00001//===-- 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
16namespace __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.
20void InitIfNecessary();
21
22} // namespace __ubsan
23
24#endif // UBSAN_INIT_H