]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/compiler-rt/lib/ubsan/ubsan_win_dll_thunk.cc
Merge ^/head r343320 through r343570.
[FreeBSD/FreeBSD.git] / contrib / compiler-rt / lib / ubsan / ubsan_win_dll_thunk.cc
1 //===-- ubsan_win_dll_thunk.cc --------------------------------------------===//
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 // This file defines a family of thunks that should be statically linked into
11 // the DLLs that have instrumentation in order to delegate the calls to the
12 // shared runtime that lives in the main binary.
13 // See https://github.com/google/sanitizers/issues/209 for the details.
14 //===----------------------------------------------------------------------===//
15 #ifdef SANITIZER_DLL_THUNK
16 #include "sanitizer_common/sanitizer_win_dll_thunk.h"
17 // Ubsan interface functions.
18 #define INTERFACE_FUNCTION(Name) INTERCEPT_SANITIZER_FUNCTION(Name)
19 #define INTERFACE_WEAK_FUNCTION(Name) INTERCEPT_SANITIZER_WEAK_FUNCTION(Name)
20 #include "ubsan_interface.inc"
21 #endif // SANITIZER_DLL_THUNK