Path: blob/main/contrib/llvm-project/compiler-rt/lib/asan/asan_rtl_static.cpp
35233 views
//===-- asan_static_rtl.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 is a part of AddressSanitizer, an address sanity checker.9//10// Main file of the ASan run-time library.11//===----------------------------------------------------------------------===//1213// This file is empty for now. Main reason to have it is workaround for Windows14// build, which complains because no files are part of the asan_static lib.1516#include "sanitizer_common/sanitizer_common.h"1718#define REPORT_FUNCTION(Name) \19extern "C" SANITIZER_WEAK_ATTRIBUTE void Name(__asan::uptr addr); \20extern "C" void Name##_asm(uptr addr) { Name(addr); }2122namespace __asan {2324REPORT_FUNCTION(__asan_report_load1)25REPORT_FUNCTION(__asan_report_load2)26REPORT_FUNCTION(__asan_report_load4)27REPORT_FUNCTION(__asan_report_load8)28REPORT_FUNCTION(__asan_report_load16)29REPORT_FUNCTION(__asan_report_store1)30REPORT_FUNCTION(__asan_report_store2)31REPORT_FUNCTION(__asan_report_store4)32REPORT_FUNCTION(__asan_report_store8)33REPORT_FUNCTION(__asan_report_store16)3435} // namespace __asan363738