Path: blob/main/contrib/llvm-project/compiler-rt/lib/ubsan/ubsan_win_dll_thunk.cpp
35233 views
//===-- ubsan_win_dll_thunk.cpp -------------------------------------------===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//7//8// This file defines a family of thunks that should be statically linked into9// the DLLs that have instrumentation in order to delegate the calls to the10// shared runtime that lives in the main binary.11// See https://github.com/google/sanitizers/issues/209 for the details.12//===----------------------------------------------------------------------===//13#ifdef SANITIZER_DLL_THUNK14#include "sanitizer_common/sanitizer_win_dll_thunk.h"15// Ubsan interface functions.16#define INTERFACE_FUNCTION(Name) INTERCEPT_SANITIZER_FUNCTION(Name)17#define INTERFACE_WEAK_FUNCTION(Name) INTERCEPT_SANITIZER_WEAK_FUNCTION(Name)18#include "ubsan_interface.inc"19#endif // SANITIZER_DLL_THUNK202122