Path: blob/main/contrib/llvm-project/compiler-rt/lib/ubsan/ubsan_win_runtime_thunk.cpp
213766 views
//===-- ubsan_win_runtime_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 things that need to be present in the application modules9// to interact with Ubsan, when it is included in a dll.10//11//===----------------------------------------------------------------------===//12#if defined(SANITIZER_DYNAMIC_RUNTIME_THUNK) || \13defined(SANITIZER_STATIC_RUNTIME_THUNK)14#define SANITIZER_IMPORT_INTERFACE 115#include "sanitizer_common/sanitizer_win_defs.h"16#include "sanitizer_common/sanitizer_win_thunk_interception.h"17// Define weak alias for all weak functions imported from ubsan.18#define INTERFACE_FUNCTION(Name)19#define INTERFACE_WEAK_FUNCTION(Name) REGISTER_WEAK_FUNCTION(Name)20#include "ubsan_interface.inc"21#endif // defined(SANITIZER_DYNAMIC_RUNTIME_THUNK) ||22// defined(SANITIZER_STATIC_RUNTIME_THUNK)232425