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 // Get the full tool name for UBSan.
19 const char *GetSanititizerToolName();
21 // Initialize UBSan as a standalone tool. Typically should be called early
22 // during initialization.
23 void InitAsStandalone();
25 // Initialize UBSan as a standalone tool, if it hasn't been initialized before.
26 void InitAsStandaloneIfNecessary();
28 // Initializes UBSan as a plugin tool. This function should be called once
29 // from "parent tool" (e.g. ASan) initialization.
32 } // namespace __ubsan
34 #endif // UBSAN_INIT_H