summaryrefslogtreecommitdiff
path: root/lib/ubsan/ubsan_init.h
blob: 18356cfca6177f32690e4f7e33596bf8e8904fe3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//===-- ubsan_init.h --------------------------------------------*- C++ -*-===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// Initialization function for UBSan runtime.
//
//===----------------------------------------------------------------------===//
#ifndef UBSAN_INIT_H
#define UBSAN_INIT_H

namespace __ubsan {

// NOTE: This function might take a lock (if .preinit_array initialization is
// not used). It's generally a bad idea to call it on a fast path.
void InitIfNecessary();

}  // namespace __ubsan

#endif  // UBSAN_INIT_H