]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/compiler-rt/lib/sanitizer_common/sanitizer_coverage_win_sections.cc
Update svn-1.9.7 to 1.10.0.
[FreeBSD/FreeBSD.git] / contrib / compiler-rt / lib / sanitizer_common / sanitizer_coverage_win_sections.cc
1 //===-- sanitizer_coverage_win_sections.cc --------------------------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file defines delimiters for Sanitizer Coverage's section.
11 //===----------------------------------------------------------------------===//
12
13 #include "sanitizer_platform.h"
14 #if SANITIZER_WINDOWS
15 #include <stdint.h>
16 #pragma section(".SCOV$A", read, write)  // NOLINT
17 #pragma section(".SCOV$Z", read, write)  // NOLINT
18 extern "C" {
19 __declspec(allocate(".SCOV$A")) uint32_t __start___sancov_guards = 0;
20 __declspec(allocate(".SCOV$Z")) uint32_t __stop___sancov_guards = 0;
21 }
22 #endif // SANITIZER_WINDOWS