1 //===-- ubsan_init.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 // Initialization function for UBSan runtime.
12 //===----------------------------------------------------------------------===//
18 // Initialize UBSan as a standalone tool. Typically should be called early
19 // during initialization.
20 void InitAsStandalone();
22 // Initialize UBSan as a standalone tool, if it hasn't been initialized before.
23 void InitAsStandaloneIfNecessary();
25 // Initializes UBSan as a plugin tool. This function should be called once
26 // from "parent tool" (e.g. ASan) initialization.
29 } // namespace __ubsan
31 #endif // UBSAN_INIT_H