]> git.proxmox.com Git - rustc.git/blob - src/libcompiler_builtins/compiler-rt/lib/xray/xray_flags.h
New upstream version 1.20.0+dfsg1
[rustc.git] / src / libcompiler_builtins / compiler-rt / lib / xray / xray_flags.h
1 //===-- xray_flags.h -------------------------------------------*- C++ -*-===//
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 is a part of XRay, a dynamic runtime instruementation system.
11 //
12 // XRay runtime flags.
13 //===----------------------------------------------------------------------===//
14
15 #ifndef XRAY_FLAGS_H
16 #define XRAY_FLAGS_H
17
18 #include "sanitizer_common/sanitizer_flag_parser.h"
19
20 namespace __xray {
21
22 struct Flags {
23 #define XRAY_FLAG(Type, Name, DefaultValue, Description) Type Name;
24 #include "xray_flags.inc"
25 #undef XRAY_FLAG
26
27 void SetDefaults();
28 };
29
30 extern Flags xray_flags_dont_use_directly;
31 inline Flags *flags() { return &xray_flags_dont_use_directly; }
32
33 void InitializeFlags();
34
35 } // namespace __xray
36
37 #endif // XRAY_FLAGS_H