brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · a6f812b Raw
37 lines · cpp
1//===-- asan_static_rtl.cpp -----------------------------------------------===//2//3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.4// See https://llvm.org/LICENSE.txt for license information.5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception6//7//===----------------------------------------------------------------------===//8//9// This file is a part of AddressSanitizer, an address sanity checker.10//11// Main file of the ASan run-time library.12//===----------------------------------------------------------------------===//13 14// This file is empty for now. Main reason to have it is workaround for Windows15// build, which complains because no files are part of the asan_static lib.16 17#include "sanitizer_common/sanitizer_common.h"18 19#define REPORT_FUNCTION(Name)                                       \20  extern "C" SANITIZER_WEAK_ATTRIBUTE void Name(__asan::uptr addr); \21  extern "C" void Name##_asm(uptr addr) { Name(addr); }22 23namespace __asan {24 25REPORT_FUNCTION(__asan_report_load1)26REPORT_FUNCTION(__asan_report_load2)27REPORT_FUNCTION(__asan_report_load4)28REPORT_FUNCTION(__asan_report_load8)29REPORT_FUNCTION(__asan_report_load16)30REPORT_FUNCTION(__asan_report_store1)31REPORT_FUNCTION(__asan_report_store2)32REPORT_FUNCTION(__asan_report_store4)33REPORT_FUNCTION(__asan_report_store8)34REPORT_FUNCTION(__asan_report_store16)35 36}  // namespace __asan37