1027ffb17SKirill Stoimenov //===-- asan_static_rtl.cpp -----------------------------------------------===//
2027ffb17SKirill Stoimenov //
3027ffb17SKirill Stoimenov // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4027ffb17SKirill Stoimenov // See https://llvm.org/LICENSE.txt for license information.
5027ffb17SKirill Stoimenov // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6027ffb17SKirill Stoimenov //
7027ffb17SKirill Stoimenov //===----------------------------------------------------------------------===//
8027ffb17SKirill Stoimenov //
9027ffb17SKirill Stoimenov // This file is a part of AddressSanitizer, an address sanity checker.
10027ffb17SKirill Stoimenov //
11027ffb17SKirill Stoimenov // Main file of the ASan run-time library.
12027ffb17SKirill Stoimenov //===----------------------------------------------------------------------===//
13027ffb17SKirill Stoimenov 
14027ffb17SKirill Stoimenov // This file is empty for now. Main reason to have it is workaround for Windows
15027ffb17SKirill Stoimenov // build, which complains because no files are part of the asan_static lib.
16*8b899e06SKirill Stoimenov 
17*8b899e06SKirill Stoimenov #include "sanitizer_common/sanitizer_common.h"
18*8b899e06SKirill Stoimenov 
19*8b899e06SKirill Stoimenov #define REPORT_FUNCTION(Name)                                       \
20*8b899e06SKirill Stoimenov   extern "C" SANITIZER_WEAK_ATTRIBUTE void Name(__asan::uptr addr); \
21*8b899e06SKirill Stoimenov   extern "C" void Name##_asm(uptr addr) { Name(addr); }
22*8b899e06SKirill Stoimenov 
23*8b899e06SKirill Stoimenov namespace __asan {
24*8b899e06SKirill Stoimenov 
25*8b899e06SKirill Stoimenov REPORT_FUNCTION(__asan_report_load1)
26*8b899e06SKirill Stoimenov REPORT_FUNCTION(__asan_report_load2)
27*8b899e06SKirill Stoimenov REPORT_FUNCTION(__asan_report_load4)
28*8b899e06SKirill Stoimenov REPORT_FUNCTION(__asan_report_load8)
29*8b899e06SKirill Stoimenov REPORT_FUNCTION(__asan_report_load16)
30*8b899e06SKirill Stoimenov REPORT_FUNCTION(__asan_report_store1)
31*8b899e06SKirill Stoimenov REPORT_FUNCTION(__asan_report_store2)
32*8b899e06SKirill Stoimenov REPORT_FUNCTION(__asan_report_store4)
33*8b899e06SKirill Stoimenov REPORT_FUNCTION(__asan_report_store8)
34*8b899e06SKirill Stoimenov REPORT_FUNCTION(__asan_report_store16)
35*8b899e06SKirill Stoimenov 
36*8b899e06SKirill Stoimenov }  // namespace __asan
37